64. Apply template in Scoped Application
Import
·
Jun 01, 2024
·
article
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(‘’); // 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();
View original source
https://medium.com/@LearnITbyPrashant/65-apply-template-in-scoped-application-afc572bcc4a6?source=rss-d005fc598f0a------2