logo

NJP

62. Apply template in Scoped Application

Import · May 31, 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/62-apply-template-in-scoped-application-ad73eebc7d98?source=rss-d005fc598f0a------2