How to pass values from a For Each loop into an array flow variable (step by step)?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
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
Use Look Up Records (or similar) to return multiple records
Loop through those records using For Each
Collect each record’s sys_id
Store all sys_ids into one array flow variable
Use that array later in the flow (outside the For Each)
Could someone please provide a clear, step‑by‑step example
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
