Generate PDF for RITM variables and attach to notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2025 10:26 PM
Hi All,
I have a requirement to generate a PDF that includes all the submitted variable details for current RITM. Once the PDF is generated, it should be automatically attached to the approval notification.
Can anyone guide me on how to achieve this in ServiceNow? Any suggestions or best practices would be greatly appreciated.
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2025 10:28 PM
you can use PDF Generation API
check this link which has script from Piyush
Generate PDF file for catalog variables and attach it to RITM
you can check the PDF Generation API for this
Generating Custom PDFs - using the new PDFGenerationAPI
another method
Generate PDF and attach to the record
When catalog item is submitted, attach variables to RITM as a PDF
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2025 10:54 PM
Hi Ankur,
I am glad to see your response.
Apologies for the oversight—I forgot to mention that my catalog item contains 3 MRVS.
Unfortunately, using the provided link "Generate PDF file for catalog variables and attach it to RITM ", I am unable to fetch details for MRVS variables and reference variables.
I am aware this is a good way to go about it, but I don't have too much experience with scripting in this way
Could you please guide me on how to retrieve these values correctly?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2025 10:57 PM
Would you mind closing your earlier question which I answered by marking my response as correct.
You have marked it helpful.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-09-2025 10:59 PM
data for MRVS is stored in "sc_multi_row_question_answer" so you can use that to get the MRVS values
please enhance the script shared by Piyush
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader