cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gadsweb
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
Gadsweb
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
Gadsweb
Frequent Visitor

I found the solution.

This may help someone else...

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

View solution in original post

AlanPs1
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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (48,296)