Download records as pdf files into a zip folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 03:39 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 03:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 06:17 AM
Hi Aman,
Is it possible to push the related list records also into the PDF download?
Thank you,
Manasa

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 12:26 AM
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.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 03:29 AM
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