cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Update a person field in sharePoint with multiple values

Hi All,

 

I've a challenge with the following case:

 

I want to update multiple users in to a person/group column.

 

The users that are required, are stored in another list, where I can get the details.

In some case, multiple users equals to the condition, so all this users needs to be added to my SharePoint column. At this moment there is an override.

 

My flow is setup as follow:

2020-11-20 11_49_18-Window.png

 

In the compose I've setting up the person field from list 2.

 

I've tried to follow this post, but that's not working.

I'm cannot set a variable with data from the get items action and also I can select the compose data from my dynamic field.

 

Does anyone know how to achieve this?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi @DBG88,

 

What are you setting in your Compose action?

 

I have just done some tests. I think the issue would be that when collecting a people field from another list you would get much more people columns than just the claims column. See the screenshot below.

 

peoplearray.png

 

I think to workaround this you can just collect the claims value and append that to an array variable. Below is an example of the concept of this. Hopefully this helps a bit.

 

1. First collect the people column from the get items in a Compose (in my case that column is called SMEs)

peoplesmes.png

2. Get the claims value from that in another compose action

smesclaimsvalue.png

3. Append the Claims value like in the post you mentioned earlier

appendclaims.png

4. Update the original item with your appended array.  

assignedtoarray.png

View solution in original post

3 REPLIES 3
Super User III
Super User III

Hi @DBG88 

 

You need to iterate all the multiple users email and construct the following format

 

[
{
"Claims": "test1@test.com"
},
{
"Claims": "test2@test.com"
}
]

 

Please have a look at my video tutorial

 

Power Automate - How To Update SharePoint People Or Group Column - YouTube

 

If you need any further help please let me know.

 

Thanks

 

 



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
Super User II
Super User II

Hi @DBG88,

 

What are you setting in your Compose action?

 

I have just done some tests. I think the issue would be that when collecting a people field from another list you would get much more people columns than just the claims column. See the screenshot below.

 

peoplearray.png

 

I think to workaround this you can just collect the claims value and append that to an array variable. Below is an example of the concept of this. Hopefully this helps a bit.

 

1. First collect the people column from the get items in a Compose (in my case that column is called SMEs)

peoplesmes.png

2. Get the claims value from that in another compose action

smesclaimsvalue.png

3. Append the Claims value like in the post you mentioned earlier

appendclaims.png

4. Update the original item with your appended array.  

assignedtoarray.png

View solution in original post

@Expiscornovus Thank you!

That's the trick and it solved my case!

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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
Users online (9,251)