Including "Email Scripts" in a template or notification

Makosko
Tera Expert

Guys,

 

has anybody managed to figure out how to include an email script in a template ?

 

Cheers

Maros

17 REPLIES 17

Manish,



"${mail_script:script name}" - THAT IS IT a disgraceful documentation by SNOW.



Thanks for your help !



Maros


You are welcome Maros



Regards,


Manish


how do i mark it as a correct anser ?


This thread was started as a discussion. I guess if it was started as a question in Support category, you'd be having an option to mark the answer as correct. I have no idea if any answer can be marked as correct in a discussion thread.



Regards,


Manish


not sure whether you have noticed this but gs.getUserID() does not refer to your account but "system".



Queries like the one below don`t work...



var gr = new GlideRecord("sysapproval_approver");


          gr.addEncodedQuery("approver=javascript:getMyApprovals()^stateINrequested");


          gr.query();



Cheers


Maros