list collector in flow designer

Akki1
Tera Contributor

Hi,

I'm adding users to a group. I am doing a API call here and sending the users first_name. I'm using a flow designer and getting catlog variables and then the users are in list collector.Now in a custom action I'm trying to take the values of list collector which is not working so I went for lookup records and for each loop and using it and it is working but the problem is if there are multiple users then for every user doing a api call is not feasible . So is there any way I can get all users first_name in some array and then send this array? If yes pls ellaborate?

1 ACCEPTED SOLUTION

OlaN
Giga Sage
Giga Sage

Hi,

Yes there is, by storing all the values in a Flow variable.

Example below, here I store the first names of a number of users in a Flow variable as a comma separated string.

 

find_real_file.png

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

it would be nice if you share screenshots for better understanding

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

OlaN
Giga Sage
Giga Sage

Hi,

Yes there is, by storing all the values in a Flow variable.

Example below, here I store the first names of a number of users in a Flow variable as a comma separated string.

 

find_real_file.png

OlaN
Giga Sage
Giga Sage

Hi,

Did my answer resolve your question?

If so, please close this thread by marking my answer as correct.
Otherwise tell us what more you need help with.