Need to print a portal page as a PDF and attach it to a record using a script

David Morden
Mega Expert

I'm hoping someone out there has some ideas to help out with this one.  We have a requirement to generate a PDF copy of a form only available on the portal, and attach it to a record when the record is created.  I have tried using the ?PDF URL functionality, but that only outputs the back end form in a generic format.

 

The reason we need the form from the portal is due to the fact that the portal form is all html formatted to match the design the client requires their form to be in for distribution to their users (an official document layout).  The official PDF document then needs to be emailed to the client with other generated attachments, and this is all done using notifications to include all attachments.

 

Any help would really be appreciated.

11 REPLIES 11

sachin_namjoshi
Kilo Patron
Kilo Patron

Please for solution below to generate PDF and attach to record

 

https://community.servicenow.com/community?id=community_article&sys_id=ba5c2aa1dbd0dbc01dcaf3231f961932

 

Regards,

Sachin

This is what I was referring to as the "?PDF" URL method.  I know it's a REST call, but they can't actually use a service portal page as a source for the output.  This was tried in several different ways using the method from the article you referenced, but none were successful.

 

Thank you for offering up a suggestion.  Keep them coming if you have any more thoughts.

David Morden
Mega Expert

Does anyone else have any thoughts on this one?

Hi dmorden

You found out some ways to do it??

 

Can you share what approached u followed to do it?

 

Thanks,

Archana N