PDF generation UI Action in PDF

Mani40
Tera Contributor

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 

1 ACCEPTED SOLUTION

@Mani40 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Mani40 

you can use the below script and ensure the view has the fields which you want in that pdf

check below links

I want to generate PDF file with current RITM fields info & Variables information and associated Ap... 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Mani40
Tera Contributor

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

@Mani40 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader