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!
1 REPLY 1

Tanushree Maiti
Mega Patron

Hi @shweta14 

 

Refer these community posts:

 

Generate PDF file for catalog variables and attach it to RITM 

Generate PDF and attach to the record

https://www.servicenow.com/community/developer-forum/ritm-variables-in-email-template-script/m-p/214...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: