cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
Expiscornovus
Super User
Super User

Hi @Anonymous,

 

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

4 REPLIES 4
abm
Super User
Super User

Hi @Anonymous 

 

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 blogPower Automate Video Tutorials
Expiscornovus
Super User
Super User

Hi @Anonymous,

 

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

Anonymous
Not applicable

@Expiscornovus Thank you!

That's the trick and it solved my case!

Powerplatform01
Post Patron
Post Patron

You can watch this video to resolve your issue.

Also request you to please subscribe this PowerAutomate channel

https://youtu.be/bStbzTuQH9M

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,247)