web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : ufCI4SZTc5vAMqQEMmnFLV
Power Apps - Building Power Apps
Unanswered

Patch to Multi Person SP Column

Like (0) ShareShare
ReportReport
Posted on 28 Feb 2023 12:32:53 by

Hi all,

 

I am building an issue tracker where the issue can be assigned to multiple persons and seem to be going around in circles a bit with this one. I've tried multiple things from forums/YT videos but nothing seems to be working for me.

 

The assigned people are added to a collection, I am then trying to patch the collection back to the relevant SP field. The SP column is set up as a multi person column. How do I change the below to patch all the people in the collection instead of just a single selected person? 

 

What I have so far: 

 

Patch(

    TrackerSPList,

    LookUp(TrackerSPList, SerialNo = varRecordTriage.SerialNo),

    {

        AssignedToPerson: Table(

        {

            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",

            Department: varSelectedPerson.Department,

            Claims: "i:0#.f|membership|" & varSelectedPerson.Mail,

            DisplayName: varSelectedPerson.DisplayName,

            Email: varSelectedPerson.Mail,

            JobTitle: varSelectedPerson.JobTitle,

            Picture: varSelectedPerson.Mail

        })

    }

)

  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 28 Feb 2023 at 23:07:11
    Re: Patch to Multi Person SP Column

    Hi @nemo1 ,

    I assume varSelectedPerson is your Collection ??

    Patch(
     TrackerSPList,
     LookUp(
     TrackerSPList, 
     SerialNo = varRecordTriage.SerialNo
     ),
     { 
     AssignedToPerson: 
     ForAll(
     varSelectedPerson As aPerson,
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Department: aPerson.Department,
     Claims: "i:0#.f|membership|" & Lower(aPerson.Mail),
     DisplayName: aPerson.DisplayName,
     Email: aPerson.Mail,
     JobTitle: aPerson.JobTitle,
     Picture: ""
     }
     )
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete