---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Create field mapping from an incident to a knowledge article

# Create field mapping from an incident to a knowledge article {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Copy information from an incident into a knowledge article by creating custom mapping
between the Incident table and the KCS article table.

## Vorbereitungen

Role required: admin

* You must activate the Knowledge Advanced plugin (com.snc.knowledge_advanced).
* You must activate the KCS Article template.
  1. Navigate to KnowledgeAdministrationArticle Templates.
  2. Set the Active field to true for the KCS Article template.
  {#table-mapping-knowledge-incident__ol_h2n_4pb_2gb}
{#table-mapping-knowledge-incident__ul_yf5_2pb_2gb}

## Prozedur

1. In the filter navigator, type <kbd class="ph userinput">csm_table_map.list</kbd>.
2. Click New.
3. In the Mapping Name field, enter <kbd class="ph userinput">Incident KCS Article</kbd>.
4. In the Source Table field, enter <kbd class="ph userinput">Incident</kbd>.
5. In the Target Table field, enter <kbd class="ph userinput">KCS Article</kbd>.
6. Right-click the form header and Save.
7. In the Basic Field Mapping related list, click New.
8. Create mappings for the following fields.  
   {#table-mapping-knowledge-incident__table_kq2_qvv_cgb__entry__2}

   | Source Field | Target Field |
   |-|-|
   | Sys ID | Source Task |
   | Short description | Short description |
   | Resolution notes | Resolution |
   [ ]

   {#table-mapping-knowledge-incident__table_kq2_qvv_cgb}  
   Hinweis:  
   You can create field mappings for more fields, as required.
   * In the Source field, select the field in the source Incident table that contains the information to be copied to the field in the article template target table.
   * In the Target field, select the field in the article template target table to which you need information copied to from the field in the source Incident table.
   {#table-mapping-knowledge-incident__ul_ovt_hmr_dgb}
9. To customize when and how the Knowledge check box is displayed, click the Condition tab.
10. To map fields using advanced scripts, select the Advanced Field Mapping check box.
11. On the Advanced field Mapping tab, paste in the following code.  

        (function (source,target) {
            // Get the first comments from incident and use it as Issue description for article
            var notes = source.comments.getJournalEntry(-1);
            var entries = notes.split("\n\n");
            var comment = "";
            if(entries[entries.length-2]){
                comment = entries[entries.length-2];
                var part = comment.toString().indexOf(")");
                if(part != -1){
        comment = comment.toString().substring(part+2).replaceAll("\r\n","<br/>");
            }
            }if(comment)
                target.kb_issue = comment;
        })(source,target);

    The first comment on an incident is mapped to the Issue Description field in the knowledge article.  
    Hinweis:  
    If the same source or target field is configured in both the basic and advanced field mappings, the advanced field mapping overrides the basic field mapping.

    If
    the fields configured in the basic and advanced field mapping are
    different, the field configurations in the advanced field mapping are
    appended to the field configurations in the basic field
    mapping.

