Populate variables on HR Case using hr_ServicesUtil
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2024 07:16 AM
Hi experts,
We want to populate description of HR case with record producer variables. OOTB we can map the record producer to HR case and add below line of script to record producer script field.
new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);
But we have multiple record producers for one HR service(say Payroll) and we cannot really use the above code in all the record producers unless mapped to a HR service.
So we are thinking to create one separate HR service for each record producer on the same COE but will the set the HR service on all record producers to same 'Payroll HR service' using script field.
1. Is this the right approach or does it cause any impact?
2. With this approach how can we hide the newly created HR services from case creation page (not using HR criteria) since these are created only to leverage hr_ServicesUtil script to populate description.
TIA
0 REPLIES 0