Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Knowldge template field types

Patrick Slatter
Tera Guru

Morning!

I am working on an effort to populate information from an incident record into a KCS knowledge template.

While this works out of the box, the template has limitations. 

 

I have the need for several choice list, select box, drop down style fields on the KCS template. 

OOB the template supports String, HTML, integer, date, date/time.

 

Is there a way, or has anyone been able to get drop down choice fields on a KCS template?

 

Any input would be greatly appriciated.

 

Thanks!

1 ACCEPTED SOLUTION

Patrick Slatter
Tera Guru

Solution: 

1. Create custom choice type on sys_choice table 

-  Table = kb_article_template_definition

- Element = column_type

- Label = Choice

- Value = choice

2. Create new field on kb_article_template_definition (KB Template desired) 

Field name = 'your_choice'

field type = Choice 

3. Configure choices for the new field on the table that the template resides (Example- kb_template_incident_kcs_article_html)

System definition > Tables > Search table > Click on new field you made > Choices > add the choices you need 

**Ensure these are exactly the same as whats sent from incident**

4. Navigate to 'CSM_table_map' table and find the table that the template is on 

(EXAMPLE: Incident-KCS article - HTML)

5. Add basic field mappings for the new custom field 

(EXAMPLE: Category to u_kb_category_map)

 

This will allow the mapping of choice list fields on incident into the custom choice list field types on the KCS template 

View solution in original post

1 REPLY 1

Patrick Slatter
Tera Guru

Solution: 

1. Create custom choice type on sys_choice table 

-  Table = kb_article_template_definition

- Element = column_type

- Label = Choice

- Value = choice

2. Create new field on kb_article_template_definition (KB Template desired) 

Field name = 'your_choice'

field type = Choice 

3. Configure choices for the new field on the table that the template resides (Example- kb_template_incident_kcs_article_html)

System definition > Tables > Search table > Click on new field you made > Choices > add the choices you need 

**Ensure these are exactly the same as whats sent from incident**

4. Navigate to 'CSM_table_map' table and find the table that the template is on 

(EXAMPLE: Incident-KCS article - HTML)

5. Add basic field mappings for the new custom field 

(EXAMPLE: Category to u_kb_category_map)

 

This will allow the mapping of choice list fields on incident into the custom choice list field types on the KCS template