- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Did you know you can apply template within a scoped application?
Here is an example:
var sys_id_of_template = ''; // provide here the sys_id of the template record
var grObj = new GlideRecord('<tableName>'); // provide here the table on which you wish to apply the template
grObj.initialize();
var t = new GlideTemplate.get(sys_id_of_template);
t.apply(grObj);
grObj.insert();
If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL
Best Regards,
Prashant Kumar (LearnIT)
YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant
Blog LearnIT: https://medium.com/@LearnITbyPrashant
Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/
ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635
- 951 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
