Activity set trigger based on fields in the parent case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 05:08 AM
Hi All,
We want Lifecycle activity sets to trigger when the parent case is moved to "Work in progess" by the fulfiller and based on the variables selected. For ex, only if variable 1 is X, variable 2 is Y and State changes to work in progress, corresponding LE Activity should get trigger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 05:21 AM
Hi @Suvetha S ,
Am confused !!
What do you mean by Variables here?
For a LE to trigger you need a HR service and for a HR case, you just need the Name of the Employee.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 05:25 AM
It was supposed to be field. HR Case has two dropdown fields. Say Application 1 and Application2. If Application1 has choice HR has Application2 has choice Payroll & when the fulfiller selects Work in progress then an employee form should get trigger.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 05:28 AM
Can you share some Screenshots
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2022 02:09 AM
@Community Alums
these are the 2 variables we got from Record producer. So when the state of the Parent case changes to Work in progress LE activity should trigger to the employee. I have written a Trigger condition as below which is not working.
(function shouldActivitySetTrigger(parentCase /* GlideRecord for parent case */ ,
hrTriggerUtil /* hr_TriggerUtil script include instance */ ) {
if(parentCase.state=='18')
{
var payloadObj = new global.JSON.parse(parentCase.payload);
if (payloadObj.application_category == 'Recruitment' && payloadObj.application == 'Qualtrics') {
return true;
}
}
})(parentCase, hrTriggerUtil);