---
sourceDocument: Xanadu Now Platform 기능
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/xanadu/servicenow-platform

 Release :

    - xanadu

ft:locale :

    - ko-KR

ft:publication_title :

    - Xanadu Now Platform 기능

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# 인시던트에서 지식 문서를 생성할 수 있는 UI 작업 만들기

# 인시던트에서 지식 문서를 생성할 수 있는 UI 작업 만들기 {#ariaid-title1}

* 릴리스 버전: Xanadu
* 
* 업데이트 날짜 2024년 08월 01일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 2분

UI 작업을 생성하여 Knowledge 확인란을 인시던트 양식에 추가합니다.

## 시작하기 전에

필요한 역할: admin

## 프로시저

1. 다음으로 이동 시스템 UIUI 작업.
2. 새로 만들기를 클릭합니다.
3. 다음 필드에 내용을 입력합니다.  
   {#ui-action-article-incident__table_ghz_k2w_cgb__entry__2}

   | 필드 | 설명 |
   |-|-|
   | 이름 | 지식 생성 |
   | 테이블 | 인시던트 |
   | 동작 이름 | create_knowledge |
   [표 1. UI 작업 양식]

   {#ui-action-article-incident__table_ghz_k2w_cgb}
4. 클라이언트 확인란을 선택합니다.
5. 목록 v3 호환 확인란을 선택합니다.
6. 양식 버튼 확인란을 선택합니다.
7. Onclick 필드에 <kbd class="ph userinput">createKnowledgeClient()를</kbd> 입력합니다.
8. 조건 필드에 <kbd class="ph userinput">gs.getProperty("enable_kcs_incident") == 'true' &amp; &amp; new global을 입력합니다. CSMTableMapUtil (current).findMapByName("incident_kcs_article") &amp; new global. KBKnowledge().canCreate()를 호출합니다</kbd>.
9. 스크립트 필드에 다음 코드를 입력합니다.  

       function createKnowledgeClient() {
           if (g_form.modified) {
               alert(new GwtMessage().getMessage('You have unsaved changes. Please save them to continue.'));    
           }else{
               //Call the UI Action again but skip the 'onclick' function
               gsftSubmit(null, g_form.getFormElement(), 'create_knowledge');
       //MUST call the 'Action name' set in this UI Action
           }
       }

       //Code that runs without 'onclick'
       //Ensure call to server-side function with no browser errors
       if (typeof window == 'undefined')
           CreateKnowledgeServer();

       function CreateKnowledgeServer(){
           current.update();

           var map = new global.CSMTableMapUtil (current);
           map.findMapByName("incident_kcs_article");
           var targetURL = map.getTargetURL();
               if(targetURL)
               action.setRedirectURL(targetURL[0]);
       }


