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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,332)