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 blog
Power 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

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,745)