The CreatorCon Call for Content is officially open! Get started here.

How can I script an email recipient based on the value of a variable

Cupcake
Mega Guru

I have a catalog item that has a variable (select box) that contains a list of names. In addition, I have an email notification baked inside of the workflow. What I am trying to do is send the email notification to person that is selected in that select box. Is this something that can be accomplished?

find_real_file.png

 

find_real_file.png

 

1 ACCEPTED SOLUTION

guruprasad1
Kilo Guru

Hi

 

Can try this

answer = [];

answer.push(current.variable.variable_name);

Regards

Guru

View solution in original post

16 REPLIES 16

Thank you David. I will also consider this.

This worked when I made the field a reference field. I just needed to make one change to the script.

 

answer = [];


answer.push(current.variables.variable_name.sys_id);

 

Thank you,

Karen