Change to the hr_caseCreation script include in Australia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours ago
There is a change to one line of code in the hr_caseCreation script include in Australia (for this scenario). This line used to have 'true' as the last parameter passed in but now that is gone. Due to this, the HR service template state value is not being written to the case when it is created manually from the backend and the field already has a default value. Example: state. State has a default value of 1 (Draft) for sn_hr_core_case. If you had set "Ready" in the HR service template, then the state would be Ready when the case is opened.
Anyone have any idea why this change was made? When I look at the Australia changes, I don't see this as one even though it is impactful.
Before Australia:
// Call applyBefore now so that fields with default values are overwritten by template, but user changes
// overwrite template still
if (template)
new sn_hr_core.hr_TemplateUtils().applyBefore(template, newTaskGr, true);
After upgrade:
new sn_hr_core.hr_TemplateUtils().applyBefore(template, newTaskGr);
I have adjusted the default value of the HR state to be 10 so it is fine now but it would have been nice to know there was a change to this. If anyone has seen this documented somewhere, please let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
you will have to see if this is documented in docs or any KB article as to understand why this update was made by ServiceNow
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
I do not see it as a change anywhere. I already checked the Australia release notes/changes and it is not mentioned..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
not very sure then
Try raising case with ServiceNow about this.
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader