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.

How to use template for kb articles

Mi4
Tera Expert

Hi,

There is a table with check boxes that determine whether knowledge can be created.
If this checkbox is updated with true, a knowledge article will be created.
Up to this point, it was realized, but I would like to create it using a template.
When I create a template, I get the following error:

 

business rule:

add 29 Lines

How can I solve this and call the template I created?

Thanks in advance.

 

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hello MI,

applyTemplate is not available to scoped apps. Can you try with workaround mentioned here https://community.servicenow.com/community?id=community_question&sys_id=580e0baddb9cdbc01dcaf3231f96...

Reference script by Paul.

var sys_id_of_template = '56a8e507db6b26405accd5f0cf96190b';   


var grObj = new GlideRecord('incident');   


var t =   new GlideTemplate.get(sys_id_of_template);   


t.apply(grObj); 

- Pradeep Sharma

View solution in original post

5 REPLIES 5

Hi,

Thank you for your infomation.

I'll refer to.

 

Regards,