workflow - not reading variable with user list

mcroxall
Tera Guru

Hello,

I created a workflow that needs to check all user on my user list and update a table.

It works when i have a single user selected, but when i have more than one user it only runs the first user.

How can i fix my workflow to see all the user listed?

2025-04-17_09-21-44.png

1 ACCEPTED SOLUTION

mcroxall
Tera Guru

2025-04-21_11-41-38.png

i end up creating a action to convert to string.array. that worked!

View solution in original post

6 REPLIES 6

BrianProvencher
Giga Guru

Check out the documentation here: https://www.servicenow.com/docs/bundle/yokohama-build-workflows/page/administer/flow-designer/concep...

 

Can you send a screenshot of the flow execution to see what's happening?

so the workflow only see the first user listed, if i have more than 1 it will run for the first one only 


2025-04-17_09-52-32.png

2025-04-17_09-52-45.png

@mcroxall 

if the count is correct, the for each would iterate all but you will be able to see only the 1st and last iteration

it's OOTB and you can change it via system property but in docs it says property is deprecated

"com.snc.process_flow.reporting.iteration.lastn"

Flow Designer system properties 

AnkurBawiskar_0-1744903687691.png

 

AnkurBawiskar_1-1744903805734.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@mcroxall 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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