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

Tanushree Maiti
Tera 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 Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Aditya_hublikar
Mega 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