Generate PDF for RITM variables and attach to notification

tanuja_g
Tera Contributor

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!

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@tanuja_g 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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!

@tanuja_g 

Would you mind closing your earlier question which I answered by marking my response as correct.

You have marked it helpful.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@tanuja_g 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader