Flow - For Each - "Error: Invalid assignment left-hand side."

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 01:01 PM - edited 04-03-2024 01:04 PM
Hoping someone can give me advice on an error I'm getting in a Flow, in a For Each loop. (This is in Utah.)
The concept is simple. It's a catalog item request trigger. One of the variables is an employee number value. The Look Up Records action uses this and searches the user table.
If more than one user is found, a For Each loop is needed to determine certain things about each of those user records. Problem is the For Each loop itself is just erroring out like this. Doesn't make any sense to me and I can't see anything wrong. Searching Gulag gives me very few hits, and none relevant enough to be useful.
Any advice would be appreciated. Thank you!
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 01:45 PM
Hi @apjohn2,
Do you mind sharing some screenshots of the following actions' configurations:
- Look up records
- For Each
Cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 06:51 AM
Hi @James Chun,
I don't know how to open either of these actions. When I filter Actions in Flow Designer for name contains 'each' or starts with 'for', or name contains 'look up records' I get zero hits. I can't seem to access ServiceNow's core actions, which is what I'm trying to use, and what is throwing these errors.
Please advise if able. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 12:29 PM
Hi @apjohn2,
Apologies, I wasn't clear enough. What I meant was how you configured those actions in your Flow.
e.g.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 05:57 AM - edited 04-09-2024 06:12 AM
Quite alright! I appreciate your time! I'll reply to your first question w/ the info requested. 🙂
Edit: Now that I read your original request again I think I just misinterpreted it. My apologies. 😄