HR Record producer variable value population into HR Case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 04:08 PM - edited 07-28-2025 04:09 PM
Hi,
I’m new to the HRSD module. Could someone please explain how the Short Description and Description fields are populated in HR cases when submitted via a record producer?
https://[Instance_Name].service-now.com/esc?id=sc_cat_item&sys_id=0a62f4b277b3311003ab76974f5a9932
I’ve checked the Record Producer script, related Script Includes, and HR Services configuration, but I couldn’t determine where or how HR record producer variables are being populated onto the HR case in that format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 05:45 PM
Hi @denu
In every HR related record producer the below script has been written in the script field.
new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);
createCadeFromProducer() method will be called first, from there getServiceSysIdByProducerId() will be called to get the service id. If the service id is not null, then createCaseFromProducerByService() will be called.
In this method all the questions answered by the end user will be collected and then passed to the updateCase() method.
The below mentioned script include will be called from the updateCase() method.
this._hrCaseUtils = new sn_hr_core.hr_CaseUtils(this._case, this._gs);
this._hrCaseUtils.populateCase(service, questions, source);
hr_CaseUtils() script include is responsible for populating the short description, description and other fields on the HR Case.
Hope this helps.
Regards,
Siva