We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Change to the hr_caseCreation script include in Australia

Daria6
Mega Sage

 

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.

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Daria6 

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! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

I do not see it as a change anywhere. I already checked the Australia release notes/changes and it is not mentioned..

@Daria6 

not very sure then

Try raising case with ServiceNow about this.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader