Script to generate a pdf file in workflow

Andrew125
Kilo Contributor

Hello, 

I am working on an automation process where inputs given in a catalog items are verified and they are used to create a pdf file and send it as an attachment in the notifications.

I have created a workflow to get all the variables and trying to write a runscript to make a pdf file and that file has to be attached and sent.

Any possibility to achieve this via java script.. I dont want to use a powershell custom activity to do this..

Any leads would be helpful.

Thanks,

Andy

 

1 ACCEPTED SOLUTION

this link has the solution

Generate PDF and attach to the record

Regards
Ankur

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

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can refer these utilities

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

https://community.servicenow.com/community?id=community_article&sys_id=2e2e69d71bdaa0d038739979b04bc...

Regards
Ankur

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

But this is to convert HTML to pdf and the html file has to be in the table before hand.. I am trying to create it in a workflow.. please advice 

those are server side utilities which would work in workflow run script as well.

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

this link has the solution

Generate PDF and attach to the record

Regards
Ankur

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