Copying Attachment Contents into a KB Field
When a user searches for a knowledge base article from an incident, problem, or change request, the displayed article includes an Attach to Task button at the top right. The word task is replaced by the name of the form where the search was initiated.
Clicking this button copies the article number and contents into the Comments or Description field of the incident or problem record by default. Administrators can control the field where this information is placed.
2 Controlling the Attach to Task Button
Administrators can customize the copying behavior with a property.
- Navigate to Knowledge Base > Properties.
- In the Other Knowledge Properties section, locate When attaching an article to an incident, copy the content into this field:
- Specify a field into which to copy knowledge article content. This must be the Element name for the field, which is found by right-clicking the field name and selecting Configure Label (Personalize Label in versions prior to Fuji).
- By default, this property is set to comment, meaning that content will be copied into the Additional comments field. If you change the value to work_notes, the article content would be copied into the Work notes field.
The copy behavior is based on the data type of the destination field. If the destination field is a reference field to kb_knowledge, ServiceNow creates a reference link to the existing article rather than copying the article contents into the record.
- The target field must be on the form to receive the data.
- You can (optionally) specify more than one target field, separated by commas. In this case, ServiceNow looks for each field in order and copies the contents into the first one it finds on the form. It does not copy the data into multiple fields.
- If the selected field does not exist on the form, ServiceNow checks for Comments and Description automatically.