Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

When template is not loading in new change request when i passing the template sysid in proprty

Mounika B1
Tera Contributor

Hi Team ,

Am trying to load the template when change request is new and category is empty.
when i have passed the template sys_id is working  which is not acceptable.

I have tried to pass the template mysid in system property and called in client callable script include now it is not working below is my code. Please any inputs for the solution or guide me i did any mistake.
client script & script includes.

Thanks,
Mounika B

 

 

1 REPLY 1

Tanushree Maiti
Giga Sage

Hi @Mounika B1 ,

 

After line 10,  add a alert

Line 11: alert (response); 

 

If line 11 return template sys_id , then Comment  Line 12, try/catch is not needed.

 

Replace Line 16 

from 

g_form.applyTemplate(templateSysId);

 To:

applyTemplate(templateSysId);
Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: