- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 08:47 AM - edited 11-14-2023 08:57 AM
Hr Service field is not populating when created from Record Producer.
This is what I have in the script
Can someone direct me as to what I'm doing wrong?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 06:33 AM
current.hr_service = gs.getProperty("sn_hr_er_case._Leave_SysID");
current.contact_type= "self_service";
current.state = "10"; // Ready
current.status = " submitted"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 08:57 AM
@Andre Jones are you using a template with the HR Service? I am under the assumption that you are calling to that record producer in the HR Service configuration as well. Lastly, do you have the script portion of the Record Producer compared to an OOtB Record Producer? You will see the script something like this.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 08:59 AM
I tried this line of code but nothing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 09:19 AM
I just created a Record Producer. This is what I have for the OTB
But for some reason I either get a blank HR service field or some other Record Producer that I did not create in it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 08:57 AM
Hi Andre,
Is the hrUtils script include modified?
Also, can you try addiing below line of code the the Record Producer's (HR item) Script field
new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);