How to send notification to users in a variable?

kalyan778
Mega Guru

Hi All,

Can anyone please let me know how to send the notification to the users in variable?

Let's share my scenario

I have one variable 'x' on a variable form ,x contains 10 user id's. Now I need to send a notification to the 10 members who are there in 'x'.

Can anyone please suggest.

Thanks

19 REPLIES 19

Hi Jim,



For reference variable, Try


Assuming you'r workflow on catalog item then it should be


var answer = [];


answer.push(current.variables.VARIABLENAME); //Here replace VARIABLENAME with the exact name of the catalog variable



If above case is not true i.e for normal tables then it should be



var answer = [];


answer.push(current.COLUMN NAME OF THE FIELD); //Here replace COLUMN NAME OF THE FIELD) with the exact name of the catalog variable



P.S : Click on advanced checkbox on approval user activity to see the script box in workflow.


Create a notification activity and check the advanced checkbox , and put this in the script


answer=current.variables.<your variable_name>.toString();


Hi Abhinay,



I'm not doing this from a workflow.   Would your script need to go in a mail scrip in that case?



Thanks,


Adam


Yes, what table is your notification on?


sc_req_item.