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

apjohn2
Mega Sage

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.

 

apjohn2_0-1712174671347.png

 

Any advice would be appreciated. Thank you!

 

6 REPLIES 6

James Chun
Kilo Patron

Hi @apjohn2,

 

Do you mind sharing some screenshots of the following actions' configurations:

  • Look up records
  • For Each

Cheers

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.

 

apjohn2_0-1712584278707.png

 

Hi @apjohn2,

 

Apologies, I wasn't clear enough. What I meant was how you configured those actions in your Flow.

e.g. 

JamesChun_0-1712604546319.png

 

Thanks

 

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. 😄