UI Action to download "Printer Friendly Version" and attach to the current record

Ryan Spradlin
Tera Contributor

I have created a UI action that will download a PDF attachment and attach it to the current record using steps in Generate PDF and attach to the record, but according to KB0725032 these PDF exports will not include html formatting such as bullets and numbering available in "HTML" field types. Our Project managers utilize the context menu Export > PDF (Portrait) to send out PDFs of their project status reports but the export does not include the HTML formatting and this is a problem from a professional stand point. 

find_real_file.png

We have discovered, however, that using the "Printer Friendly Version referenced as a workaround in KB0725032 displays all of the HTML content formatting exactly they way our PMs would like it. 

find_real_file.png

My question is to see if anyone has had any success using the RestMessageV2 for getting the "Printer Friendly Version" attachment via HTTP Call or any method for that matter.

 

We our currently running Madrid but will be upgrading to Orlando at the end of July.

 

Thank you!

1 REPLY 1

Rishabh Jha
Mega Guru

Hi @Ryan Spradlin ,

Please refer to this thread on "Printer Friendly Version": 

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

It also has the link to the script that ServiceNow uses to generate the printer friendly version -(https://YOURINSTANCE.service-now.com/scripts/js_includes_navpage.jsx)

I think it should give you some pointers on how to get it done. Hope it helps!

 

 

Thanks & Regards,

Rishabh Jha

Aavenir (http://www.aavenir.com/)