Add Watch list to a catalog item and add users from the variables to the watch list

Lucky1
Tera Guru

Hello all,

 

I want to add Watch list field in a catalog item and add users into it dynamically.

 

Explanation:

There are 4 variables in the catalog item, and out of that 2 variables are list collector variables. So, we can add n number of users into those list collector variables, right?

 

So, now in the watch list variable of the catalog item, I want to add all these users who are selected in these 4 variables and send the email to them once the task is updated or completed.

 

 

Can someone tell me how to do this please?

 

 

Regards,

Lucky

2 REPLIES 2

palanikumar
Mega Sage

You can create an onSubmit Catalog Client script and use below code to populate the watch_list variable

var watch_list = [];
watch_list.push(g_form.getValue("var1"));
watch_list.push(g_form.getValue("var2"));
watch_list.push(g_form.getValue("var3"));
watch_list.push(g_form.getValue("var4"));
g_form.setValue("watch_list_var",watch_list.join());
Thank you,
Palani

Hello Palani Kumar,

 

Thanks for your reply.

So, also in my question, I have to send a notification to the watch list guys, on every update of the Catalog task.

 

 

Regards,

Lucky