---
sourceDocument: 호주 고객 서비스 관리
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/customer-service-management

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 고객 서비스 관리

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# 플레이북 접수 구성요소에 대한 샘플 코드

# 플레이북 접수 구성요소에 대한 샘플 코드 {#ariaid-title1}

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

이벤트가 트리거될 때 작업을 정의하기 위해 샘플 코드가 제공됩니다. 웹 페이지에 구성요소를 포함하기 전에 사용 사례에 대한 샘플 코드를 업데이트합니다.

## 샘플 코드 {#we-playbook-intake-sample-code__section_icb_jyn_c2c}

    { 

    'SN_EMBEDX_PLAYBOOK_INTAKE#COMPONENT_READY' : (e) => { 

    // This event is dispatched when a component is ready and usable. 

    }, 

    'SN_EMBEDX_PLAYBOOK_INTAKE#COMPONENT_ERROR' : (e) => { 

    // This event is dispatched when a property validation or internal error occurs. 

    var {errorType, errorMessage} = e.detail.payload; 

    console.log(errorType, errorMessage); 

    }, 

    'SN_EMBEDX_PLAYBOOK_INTAKE#RECORD_CREATION_SUCCEEDED' : (e) => { 

    // Dispatched when a record is created by a Record Generator Playbook. 

    var {table, sysId, number, playbook_experience_id, hide_record_creation} = e.detail.payload; 

    if(hide_record_creation){ 

    var primaryURL = '/caseview'; // Replace with the URL of the case view page 

     

    // Construct the URL for the Case View component with URL parameters 

    const caseViewURL = primaryURL + '?emb_table=' + table + '&emb_recordid=' + sysId + (playbook_experience_id === '98e09a560f2200102920c912d4767e1a' ? '' : '&emb_playbook_experience=' + playbook_experience_id); 

    open(caseViewURL,'_self'); // Open case record when record created confirmation is hidden 

    } 

    }, 

    'SN_EMBEDX_PLAYBOOK_INTAKE#PRIMARY_BUTTON_CLICKED' : (e) => { 

    // This event is dispatched when primary button is clicked on the record created confirmation page. 

    var {table, record_sys_id, playbook_experience_id} = e.detail.payload; 

    var primaryURL = '/caseview'; // Replace with the URL of the case view page 

     

    // Construct the URL for the Case View component with URL parameters 

    const caseViewURL = primaryURL + '?emb_table=' + table + '&emb_recordid=' + record_sys_id + (playbook_experience_id === '98e09a560f2200102920c912d4767e1a' ? '' : '&emb_playbook_experience=' + playbook_experience_id); 

    open(caseViewURL,'_self'); // Open case record when primary button is clicked 

    }, 

    'SN_EMBEDX_PLAYBOOK_INTAKE#SECONDARY_BUTTON_CLICKED' : (e) => { 

    // This event is dispatched when secondary button is clicked on the record created confirmation page. 

    var {table, record_sys_id} = e.detail.payload; 

    var secondaryURL = '/browse'; // Replace with the URL of the secondary page 

     

    // Open the Case View component in the same tab 

    open(secondaryURL,'_self'); 

    }

**관련 태스크**   

* [플레이북 접수 구성요소 인스턴스 구성](https://servicenow-prod.fluidtopics.net/It5v2q~Yc1Cy14AavkruIQ "사용자가 자신의 웹 사이트에 임베드하고 웹 사이트에서 직접 플레이북 안내 경험을 사용하여 케이스를 제출할 수 있도록 플레이북 접수 구성요소 인스턴스를 구성합니다.")
* [외부 공급업체 웹 사이트에 플레이북 접수 구성요소 인스턴스 포함](https://servicenow-prod.fluidtopics.net/KuyRk12D_SAtf8i2x4UJdQ "고객이 외부 공급업체 웹 사이트에서 플레이북 안내 경험을 사용하여 케이스 생성을 시작할 수 있도록 구성한 플레이북 접수 구성요소 인스턴스의 전역 코드와 구성요소 코드를 포함합니다.")  
**관련 참조**   

* [플레이북 접수에 대한 구성요소 속성](https://servicenow-prod.fluidtopics.net/I1bnKXJW5RWfTSn4A~823w "구성요소 속성을 사용하면 외부 공급업체 웹 사이트에서 플레이북 접수 구성요소 인스턴스의 동작을 구성할 수 있습니다.")
* [플레이북 접수 구성요소의 이벤트 핸들러](https://servicenow-prod.fluidtopics.net/RhWtYfW_yRyl8CEGNJClYA "구성요소는 특정 조건이 충족되거나 사용자 상호작용이 있을 때 이벤트를 트리거합니다. 이벤트를 사용하여 외부 공급업체 웹 페이지의 코드를 통해 작업을 실행할 수 있습니다.")

