- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Hello Everyone,
OOB on HR Cases, ServiceNow provide the functionality to generate PDF documents via document templates however this functionality allows generation of only one document per case.
With a small tweak in a script include, we can generate multiple documents per case.
Script Include:
HRSecurityUtilsAjax
Add the following code on line 43:
new sn_hr_core.GeneralHRForm(gr.sys_class_name, gr.sys_id, gr.sys_class_name, gr.sys_id).inactivateRelatedDrafts();
Screenshot of the new code:
If my content helped you in anyway, please mark this content as BOOKMARK, SUBSCRIBE & HELPFUL
Best Regards,
Prashant Kumar (LearnIT)
YouTube Channel LearnIT: https://www.youtube.com/@learnitwithprashant
Blog LearnIT: https://medium.com/@LearnITbyPrashant
Prashant Kumar LinkedIn: https://www.linkedin.com/in/learnitbyprashant/
ServiceNow Community Prashant Kumar - https://www.servicenow.com/community/user/viewprofilepage/user-id/19635
- 417 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.

