Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

generate Document and combile them into one - PDF

Kachu
Mega Sage

Hi Community i have used  -below API to generate document task  or generate PDf dopcument without participant. for Incidentrecords.

new sn_doc.GenerateDocumentAPI().generateDocumentForTask(recordId, documentTemplateId, pdfName);

 The document template is stored and is same for all incidents. Now i need a Ui action on List view or scheduled job that can run on demand or scheduled which can generate PDf for individual records and then combine them all together or just create combined PDF all toghther as all incident with same fields .

lets say i have 10 incidents creaated last month then i would have form 1  for all 10 incident then combine them all together froming 10 page document. 

some time there could be  form 1 and form 2 for incident and rest can have form 1  still it needs to combine all PDFs after generation.

Any ideas how can i achieve this ?

 
1 REPLY 1

Tanushree Maiti
Tera Sage

Hi @Kachu 

 

Could you check these links. Hope it will help you.

 

https://www.servicenow.com/community/developer-forum/merge-multiple-pdf/m-p/2547042/page/2

https://www.servicenow.com/community/developer-forum/merge-two-pdf/m-p/3190390

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: