Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Patch Sharepoint User

(0) ShareShare
ReportReport
Posted on by 12

Hello,

I would like to assign a user to an existing Sharepoint list Item, but it does not work although there is no error. I use the Patch function + Lookup. If I only use the Patch function without Lookup it wants me to update every column.

 

Patch(
 'Sharepoint List';
 LookUp(
 'Sharepoint List';
 Person.Email = Dropdown3.Selected.Email
 );
 {
 Person: {
 Claims: Concatenate(
 "i:0#.f|membership|";
 User().Email
 );
 Department: "";
 DisplayName: Dropdown3.Selected.FullName;
 Email: Dropdown3.Selected.Email;
 
JobTitle: "";
 Picture: Dropdown3.Selected.Image
 }
 }
)

 Thank you,

Mazlum

  • WarrenBelz Profile Picture
    WarrenBelz 145,580 on at
    Re: Patch Sharepoint User

    Hi @Mazlum ,

    Firstly try this

    Patch(
     'Sharepoint List';
     LookUp(
     'Sharepoint List';
     Person.Email = Dropdown3.Selected.Email
     );
     {
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser";
     Person: 
     {
     Claims: "i:0#.f|membership|" & Lower(Dropdown3.Selected.Email);
     Department: "";
     DisplayName: Dropdown3.Selected.FullName;
     Email: Dropdown3.Selected.Email;
     JobTitle: "";
     Picture: Dropdown3.Selected.Picture
     }
     }
    )

    I have to assume here that you have a record where the Person field has an email matching that selected in Dropdown3.

     

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard