HR Document Template Scripting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 12:39 AM
Hello i am using follwoing code to set a value on PDF but its giving error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 02:53 AM
@Community Alums
out of the box there is no field case_request on incident table
are you sure you are using correct field to query?
I believe you should use parent field. I am not aware the HR document template is configured on which table and what's the relationship with Incident table
gr.addQuery('parent',taskGr .sys_id);
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 03:19 AM
@Ankur Bawiskar I replaced my custom field with case_request for the forum.
The issue is solved ! It was cross scope error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2023 03:30 AM
@Community Alums
glad to know that my comment helped and resolved it.
Please mark my response as correct and close the thread.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader