For each item not working with MRV (Multi row Variable) (Reference variable)

rafaelalves4337
Tera Contributor

I have created a form to add users to Servicenow groups.

 

For that I created a MRV with 2 reference fields (User name and Group name:

Screenshot_197.jpg

 

My flow is not passing the For Each Item step, can someone please tell me what is the right way to add the users from that reference inside MRV to the group.

 

Screenshot_199.jpg

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @rafaelalves4337,

 

The Flow looks ok to me, can you share some screenshots of individual actions?

I have created something similar in the PDI and it works fine, note that it will throw an error if the user is already a member of the group.

JamesChun_0-1717097876056.png

 

And what did you mean by is not passing the For Each Item step? Did you get an error of some sort?

 

View solution in original post

11 REPLIES 11

Thank you @James Chun.

 

It worked, I removed the END flow and now it's adding both users to the group!!
You are a Genius!!

 

Thank you very much!

@James Chun 
Please help here,I am unable get 2nd row data.It was looping for 1st one only and not giving details for 2nd.
for each not returning data.png