---
sourceDocument: 호주 API 참조
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/api-reference

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 API 참조

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideRecord 변수를 "NULL"로 설정

# GlideRecord 변수를 "NULL"로 설정 {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 03월 12일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 1분

GlideRecord 변수(current 포함)는 데이터베이스에서 처음에 null입니다. 이를 빈 문자열, 공백 또는 JavaScript null 값으로 다시 설정해도 이 초기 상태로 돌아가지 않습니다.
주:  
이 기능을 사용하려면 JavaScript에 대한 지식이 필요합니다. 초기 상태로 다시 설정하려면 값을 'NULL'로 설정하기만 하면 됩니다. update() 함수는 현재 객체에서 실행되는 것이 아니라 기록에서 실행됩니다. 이 객체는 기록에서 다시 호출될 때까지 초기 값을 표시합니다.  
주:  
여기에 설명된 기능에는 관리자 역할이 필요합니다.

## 예시 1 {#r_SettingAGlideRecordVariableToNull__section_rxv_wzv_msb}

    var grIncident = new GlideRecord('incident');
    grIncident.addNotNullQuery("assigned_to");
    grIncident.query();
    if (grIncident.next()) {
      gs.log("The incident record that is going to be updated is " + grIncident.number);
      gs.log("Previous Value of 'Assigned To' field: " + grIncident.assigned_to);
      grIncident.assigned_to = "NULL";
      grIncident.update();
      gs.log("Current Value of 'Assigned To' field: " + grIncident.assigned_to);
    }

## 예 2(비즈니스 규칙) {#r_SettingAGlideRecordVariableToNull__section_sxv_wzv_msb}

    current.u_affected_value = 'NULL';
    current.update();


