How to create a HR Case with HR Service that has a record producer via scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2024 03:35 PM
In a lifecycle event, we have an activity configured as an HR Task for user to submit a HR Service+Record Producer with 1 question. We just received a request from HR that if this task is not completed within 4 days, we need to auto close this task and create the HR Case and manually set the record producer variable value to No.
I am writing scripts in scheduled jobs to auto close the task and create the HR case if hr task created date is 4 days from today. However, I am unsuccessful to set the record producer variable via scripts.
My guess is the record producer was not initiated to create the HR case. How can I accomplish this via scripts without an user creating the HR case via a record producer in the onboarding portal?