cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Add user to multi-user field

Hello,

I have a list of emails and I want to fill a multi user field in a list.

When I hardcode the array like that :

 

07-05-2019 19-37-18.jpg

Everything is fine in the Create Item Action

07-05-2019 19-39-57.jpg

Now, how to create the same array in a foreach loop from a list (foreach part is OK, I just want to know what to use).

I have tried Compose, concat but nothing does the trick.

 

Many thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

I found the solution.

This may help someone else...

07-05-2019 20-01-59.jpg

View solution in original post

2 REPLIES 2
Frequent Visitor

I found the solution.

This may help someone else...

07-05-2019 20-01-59.jpg

View solution in original post

Resident Rockstar
Resident Rockstar

Hi @Gadsweb , thank you for your post in the Flow Community.

Please consider this ...

I have a list like the following:Capture-546.png

Using a combination of "Initialize variable" & "Set variable" I am able to iterate through every email in the SharePoint list.

 

Please see below:Capture-547.png

 

items('Apply_To_Each_Email_in_Emails_List')?['Email']

 

Please not above my naming for "Apply to each" matches how I have renamed it, amend to suit.

This means, I get all emails in my list in apply to each.

Here are the first 2 ...Capture-548.pngand 2 ...Capture-549.png

 

So, I am hoping this is the explanation and a decent demo of using the expressions you are looking for.

 

If you have found my post helpful, please mark thumbs up.

 

Any other questions, just ask.

 

Thanks, Alan

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Top Kudoed Authors
Users online (12,993)