- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2024 10:13 PM
Hello all,
I am trying to build the below functionality in PDI.
Needs to create a form button UI action - "PDF generator" which should create a PDF attachment which is attached to the same record. PDF attachment should contain only specific fields on form which i needs to provide in JSON format
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2024 02:06 AM
then you can use PDGGeneration API and customize the content within that generated PDF as well.
Generating Custom PDFs - using the new PDFGenerationAPI
PDFGenerationAPI - Scoped, Global
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2024 10:27 PM
you can use the below script and ensure the view has the fields which you want in that pdf
check below links
Generate PDF and attach to the record
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2024 12:52 AM
Thanks for the reply. but i am looking for the solution something different. Instead of creation of new view, i just want to send the specific fields on the form in a json format and PDF should should be created only those fields and attach it to the same record.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2024 02:06 AM
then you can use PDGGeneration API and customize the content within that generated PDF as well.
Generating Custom PDFs - using the new PDFGenerationAPI
PDFGenerationAPI - Scoped, Global
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader