How to add parent RITM as a pdf along with Variables on email

shweta14
Tera Contributor

Hi Community,

I have requirement to add parent RITM along with variable as a pdf on email
how to achieve this with email script?

use below code in email script but it will generate pdf with fields only not variables :-

var pdfLink = gs.getProperty('glide.servlet.uri') + 'sc_req_item.do?PDF&sys_id=' + current.sys_id;
     template.print('<a href="' + pdfLink + '">Click here to download RITM PDF</a>');



Thank you in Advance!
2 REPLIES 2

Aditya_hublikar
Giga Sage

Hello @shweta14 ,

 

 You can refer following thread in which I mentioned pdf generation code snippet :

https://www.servicenow.com/community/developer-forum/custom-pdf-generation/m-p/3441261

 

If this helps you then mark it as helpful and accept as solution.

Regards,

Aditya