How to pass values from a For Each loop into an array flow variable (step by step)?

saint
Tera Expert

Hi Community,

 

I’m working in ServiceNow Flow Designer and I’m trying to clearly understand the correct, supported way to collect values from a For Each loop and store them into an array flow variable, so the values are available after the loop finishes.

 

What I’m trying to do

  1. Use Look Up Records (or similar) to return multiple records
  2. Loop through those records using For Each
  3. Collect each record’s sys_id
  4. Store all sys_ids into one array flow variable
  5. Use that array later in the flow (outside the For Each)

 

Could someone please provide a clear, step‑by‑step example
0 REPLIES 0