How to send notification based on the catalog form group variable.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 10:46 AM
Hi ,
I need to send notification dynamically based on the 2 Group name variables(Group1 and Group2) from the catalog form. Who will receieve should be dynamic based on the those 2 groups from the form. How can I acheive this ?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2024 12:24 PM
- Create a event using "Event Registry".
- In notification add that event under "When to send"
- Check "Event parm 1 contains recipient"
- In flow
var emails =[];
var gr = new GlideRecord("sys_user_grmember");
gr.addEncodedQuery("group="+fd_data.trigger.request_item.variables.group_1+"^ORgroup="+fd_data.trigger.request_item.variables.group_2);
gr.query();
while(gr.next())
{
emails.push(gr.user.email);
}
replace group_1 & group_2 with your actual variable names.
Please check & If my answer helped you in any way, please mark it as helpful or correct.