- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2018 02:33 PM
I have used the share application to create PDF by setting template and creating attachments on targeted table records with business rule.
Challenge: All the generated PDF's are without name (undefined .pdf)
I want to set record.number as the name of pdf document
Please help me.
BR:
var documentBody = new genDoc_Ajax();
documentBody.setDocumentBodyServer(current);
var gdf = new GeneralDocFormv2('Demand assesment by user', current.sys_class_name, current.sys_id, current.number);
gdf.generate();
PDF generator from share: https://developer.servicenow.com/app.do#!/share/contents/3429377_pdf_generator?v=1.02&t=PRODUCT_DETAILS
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 01:03 AM
Hi Sharandeep,
you can check the script include or business rule and check which contains the filename in the line of code.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2018 01:03 AM
Hi Sharandeep,
you can check the script include or business rule and check which contains the filename in the line of code.
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader