How do I send a notification to all the users collected in a list collector variable?

mslocum
Mega Expert

I am using a list collector that references the sys_user table to capture which users need access to a product using a catalog item. Once the work is complete the workflow is set to send a notification to these users but I am unable to get it to work.

answer = [];

answer.push(current.variables.users_needing_access.sys_id);
1 ACCEPTED SOLUTION

mslocum
Mega Expert

The answer was actually very simple. List collectors already save users in a comma separated list as required by notifications. I was very much over complicating it.

 

Heres what I ended up with that worked, I should have tried this first:

answer = [];

answer.push(current.variables.users_needing_access);

View solution in original post

7 REPLIES 7

mslocum
Mega Expert

The answer was actually very simple. List collectors already save users in a comma separated list as required by notifications. I was very much over complicating it.

 

Heres what I ended up with that worked, I should have tried this first:

answer = [];

answer.push(current.variables.users_needing_access);

Hi this works perfectly, but how can we send this to individual users, separately? 

var answer = current.variables.<variable name>.toString(',');