How to add parent RITM as a pdf along with Variables on email
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2026 10:18 PM
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!
Thank you in Advance!
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2026 10:29 PM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2026 12:12 AM
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