cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Gadsweb
Level: Power Up

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
Gadsweb
Level: Power Up

Re: Add user to multi-user field

I found the solution.

This may help someone else...

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

2 REPLIES 2
Gadsweb
Level: Power Up

Re: Add user to multi-user field

I found the solution.

This may help someone else...

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

Super User
Super User

Re: Add user to multi-user field

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
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 4 members 5,131 guests
Please welcome our newest community members: