File Name for Generated PDF Template

John L_
Giga Contributor

Is it possible to change the format of the file name of a document generated from a PDF Document Template?

We are currently generating a document from a PDF Document Template using the Managed Documents plugin. The file name format for the documents once generated seems to be "<Template Name> - <Signed By>". Can we change which field the name comes from without changing which field the signature is attached to?

Thank you,
-John

2 REPLIES 2

Kiel Sanders
ServiceNow Employee
ServiceNow Employee

This is defined in the createPdfForDocument() method within the hr_PdfUtils script include (line 685 in London).  It would not be recommended to change this script include because it could impact enhancements to the PDF functionality during upgrades.

Hey kiel , 

If thats the case , then why not we can deactivate the existing one and copy the content into a new script include and do the modification so that it works as per our requirement and even servicenow will push upgrades as there is no change done on the OOB one 

 

Thanks,

Siva