---
sourceDocument: オーストラリア ServiceNow AI Platform の機能
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/servicenow-platform

 Release :

    - australia

ft:locale :

    - ja-JP

ft:publication_title :

    - オーストラリア ServiceNow AI Platform の機能

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# インシデントからナレッジ記事を作成できるようにする UI アクションの作成

# インシデントからナレッジ記事を作成できるようにする UI アクションの作成 {#ariaid-title1}

* リリースバージョン: Australia
* 
* 更新日 2026年03月12日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：2分

ナレッジチェックボックスをインシデントフォームに追加する UI アクションを作成します。

## 始める前に

必要なロール：admin

## 手順

1. 移動先 システム UIUI アクション.
2. \[New\] をクリックします。
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;&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]);
       }


