Need to print a portal page as a PDF and attach it to a record using a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2018 11:06 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2018 11:18 AM
Please for solution below to generate PDF and attach to record
https://community.servicenow.com/community?id=community_article&sys_id=ba5c2aa1dbd0dbc01dcaf3231f961932
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2018 11:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2018 11:03 AM
Does anyone else have any thoughts on this one?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2019 06:33 PM
Hi dmorden
You found out some ways to do it??
Can you share what approached u followed to do it?
Thanks,
Archana N