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 Kalyan,



Did you manage to fix this?   I am attempting the same thing with sc variables and there seems to be no answers in the community.



Thanks,


Jimmy


If you can tell me your use case, I can help you out


Is your list collector variable on sys_user table? Then try this


answer = [];


var userArr=current.variables.<list collector variable name>.toString().split(',');


for (var i = 0; i < userArr.length; i++) {


    answer.push(userArr[i].toString());


}


Yes it is on the user table.


It's a Reference variable, not a list collector.