Download records as pdf files into a zip folder

manasa0590
Tera Contributor

Hi team,

 

We have a requirement to download the selected records of a custom table into a ZIP folder with the records as  individual pdf files and pdf file name  same as the record name.

 

We also want format the pdf file generated with the required font size and style and alignment changes. 

 

Please help us whether this is feasible in servicenow and what could be the approach.

 

Thank you,

Manasa

7 REPLIES 7

Aman Kumar S
Kilo Patron

Hi @manasa0590 ,
You can follow below link to achieve the same:

https://www.servicenow.com/community/developer-forum/how-to-get-export-to-pdf-into-zip-with-all-attc...

 

 

Best Regards
Aman Kumar

Hi Aman,

 

Is it possible to push the related list records also into the PDF download?

 

Thank you,

Manasa

Yes, you can but all the adjustments you will need to add in the script, as in how you are building the data set for a single record and putting it down in the pdf file, you will have to cover all that for each associated record in the related list.

 

Best Regards
Aman Kumar

Hi Aman,

Thank you for the response. In the link below, I am not getting where we are configuring html/css changes for the PDF. I want to download the entire record as PDF attachment. we want to print the record form into PDF like below (refer the screenshot attached. please ignore the QR code) The red arrow indicates the related record placement and display.  Where to pass the related record details in the script? Looks like I am missing the flow. Please help me with the approach step by step.   

 

My requirement: create a UI action button. From the list view select multiple records and hit the UI action to download all the records into pdf files(provision required to make changes to its font size/style and alignment and file name to be same as record display name) within a zip folder. 

 

Thank you