- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 08:44 AM - edited 03-18-2025 08:46 AM
Hi,
I have created a flow that is triggered when a user is deactivated and to do a look up for any requests they submitted and for each request, send a notification to the Assigned To user so that the request isn't ignored and still gets completed.
The challenge I face is that I have an IF logic step implemented to where if the Assigned To on the request is empty, I would like the notification to be sent to an Admin Group. If I don't do this, then the notification won't get sent out because there won't be a recipient.
I don't see a way to accomplish this in the Workflow Studio. Can someone please review my attached flow and advise me how I can achieve adding the Admins Group as the recipient of the notification if the Assigned To is empty?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 12:02 PM
Hi @neil_b,
I was able to reproduce and work on your scenario on my PDI. Please follow below instructions:
Create a new Event Registry in sysevent_register as follow:
On your Notification, "When to send" tab, adjust is as follow by setting the event you created in previous step:
In the "Who will receive" tab, check "Event parm1 contains recipient"
In your Flow, you won't need "if else", you can use "Fire event" action:
in the Parameter 1, please provide following script:
return fd_data._2__for_each.item.assigned_to || "b85d44954a3623120004689b2d5dd60a";
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 10:31 AM
Hi @neil_b,
Are you referring to the Group Admin (Group manager field on the assignment group) or to a dedicated group of admins?
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 10:50 AM - edited 03-18-2025 10:51 AM
We created our own internal Admin group that is our internal System Admins, unrelated to the assignment group on the request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 12:02 PM
Hi @neil_b,
I was able to reproduce and work on your scenario on my PDI. Please follow below instructions:
Create a new Event Registry in sysevent_register as follow:
On your Notification, "When to send" tab, adjust is as follow by setting the event you created in previous step:
In the "Who will receive" tab, check "Event parm1 contains recipient"
In your Flow, you won't need "if else", you can use "Fire event" action:
in the Parameter 1, please provide following script:
return fd_data._2__for_each.item.assigned_to || "b85d44954a3623120004689b2d5dd60a";
If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 01:34 PM
Hi @Medi C thank you for the detailed steps! I followed them exactly but I'm running into issues with the script. I don't see how replacing the sys_id with the Admins group sys_id is working for you because parm1 is being sent the sys_id of the assigned_to. The sys_id of the assigned_to is the sys_id from the sys_user table while the admins group sys_id is from the sys_user_group table. I'm not sure how the script is smart enough to know which table to apply the sys_id to.