How to trigger email only if specific variable choice is selected in the catalog item
This content was last updated in 2024. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2024 10:00 AM
Hi All,
We have requirement to trigger notification only if the user has selected a particular choice on the variable of catalog item , I cannot access the catalog item variable in WHEN TO RUN condition of my notification can anyone help me on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2024 10:14 AM
Hi @aaddgg454 ,
You can access the variable in the Flow/Workflow which you are using and can send email from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2024 10:22 AM - edited 09-12-2024 10:22 AM
You can set a notification when to send "Triggered" and in flow using an if loop to check if a particular variable value is selected then trigger that email, using flow send email action.
mark helpful if you found one, Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2024 10:46 PM
Write BR
var choice = current.variables.variable_name;
if (choice == 'selectedValue') { // Replace 'selectedValue' with the actual choice v
gs.eventQueue('eventName', current, current.sys_id, gs.getUserID());
}
})(current, previous);