How to trigger email only if specific variable choice is selected in the catalog item

aaddgg454
Tera Contributor

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? 

3 REPLIES 3

debendudas
Mega Sage

Hi @aaddgg454 ,

You can access the variable in the Flow/Workflow which you are using and can send email from there.

indrasengupta
Tera Guru

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.

indrasengupta_0-1726161735486.png

 


mark helpful if you found one, Thank you.

Mani A
Tera Guru

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);