---
sourceDocument: Yokohama Now Platform-Fähigkeiten
sourceDocumentLink: https://www.servicenow.com/docs/r/de-DE/yokohama/servicenow-platform

 Release :

    - yokohama

ft:locale :

    - de-DE

ft:publication_title :

    - Yokohama Now Platform-Fähigkeiten

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Erstellen Sie eine UI-Aktion, um die Erstellung von Wissensartikeln aus Incidents zu ermöglichen

# Erstellen Sie eine UI-Aktion, um die Erstellung von Wissensartikeln aus Incidents zu ermöglichen {#ariaid-title1}

* Freigeben Version: Yokohama
* 
* Aktualisiert 30. Januar 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Erstellen Sie eine UI-Aktion, um dem Incident-Formular das Kontrollkästchen „Wissen" hinzuzufügen.

## Vorbereitungen

Erforderliche Rolle: Administrator

## Prozedur

1. Navigieren zu System-UIUI-Aktionenan.
2. Klicken Sie auf Neu.
3. Füllen Sie folgende Felder aus.  
   {#ui-action-article-incident__table_ghz_k2w_cgb__entry__2}

   | Feld | Beschreibung |
   |-|-|
   | Name | Informationen erstellen |
   | Tabelle | Incident |
   | Aktionsname | Create_Knowledge |
   [Tabelle : 1. UI-Aktionsformular]

   {#ui-action-article-incident__table_ghz_k2w_cgb}
4. Wählen Sie aus Client Kontrollkästchen.
5. Wählen Sie aus Liste v3 kompatibel Kontrollkästchen.
6. Wählen Sie aus Formularschaltfläche Kontrollkästchen.
7. In Beim Klicken Feld eingeben <kbd class="ph userinput">CreateKnowledgeClient() </kbd>.
8. In Bedingung Feld eingeben <kbd class="ph userinput">gs.getProperty("enable_kcs_Incident") == 'wahr' und&amp; New global.CSMTableMapUtil (aktuell).findMapByName("Incident_kcs_article") &amp;&amp;&amp; New global.KBKnowledge().canCreate() </kbd>.
9. In Skript Geben Sie den folgenden Code ein.  

       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]);
       }


