Using list collector variables to create glide records

Harry Campbell2
Mega Guru

Hello Everyone.

I have request with a list collector where a user selects users to be added to a group.

What is the best way to take the selected users from the list collector and add them to the selected group?

I'm guessing the best way to do this in a workflow would be to create a new glide record on the sys_user_grmember table   but I cant figure out how to pass all the sys_id's of the selected users into the script that creates the new record.

Hope that makes sense.

Thanks

Harry

29 REPLIES 29

Ok I've added it into the code but nos sure where to retrieve the log.



I really do appreciate your help with this. If I can get this working it will make my day


I'm just getting an undefined error



find_real_file.png


Are you sure that you entering the correct variable name?


good call, spelling mistake.



The log shows comma seperated sys_id's of the users selected:



0f6818f144112c404eebd0bd54531376,053f0fd543d850004eeb673ba24afcaf