Auto-generating PDF and attach it to record

lightblu
Mega Expert

Hi,

I would like to automatically generate a PDF from a record and attach it to the record instead of downloading it to my computer.

I'd like to do this in a UI action, when a button is clicked.

So I would like to generate this:

Screen Shot 2016-07-13 at 8.46.47 AM.png

automatically and then auto-attach it to the record as an attachment.

Thanks!

9 REPLIES 9

User186043
Tera Guru

I know this is an old post, but a more recent solution to this is the GeneralPDF script include (description: General Application : Builds PDF preview and generates PDF document using GeneralForm2 as the HTML template). Believe this came in Helsinki, so if you're there, you can use that script include to generate a PDF and add it as an attachment. See Wallace Roats' response: https://community.servicenow.com/thread/237753


Deepak Negi
Mega Sage
Mega Sage

jamesmcwhinney
Giga Guru

https://community.servicenow.com/community?id=community_question&sys_id=409587eddbd8dbc01dcaf3231f9619bc