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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Patch and use U...
Power Apps
Unanswered

How to Patch and use Update IF functions for people picker columns

(0) ShareShare
ReportReport
Posted on by 113

I have a parent gallery and child form.  Connections are made in sharepoint using a ProjectID lookup from child to parent. To add a new child item I have a child form with 3 fields Title, Assigned To, and Project ID. The item will save properly associating the new child item with its parent, only if i remove the Assigned To code.  But if I leave the assigned to code it will not save at all. The assigned to field is a people picker column. 

Patch(
 'Project Action Items',
 Defaults('Project Action Items'),
 {
 Title: DataCardValue23.Text, 
 ProjectID: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id: 'Project Gallery'.Selected.ID,
 Value: 'Project Gallery'.Selected.Title
 },
 Assigned_x0020_To:{
 '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims:Concatenate("i:0#.f|membership|",DataCardValue36.Selected.Email),
 Department:"",
 DisplayName:DataCardValue36.Selected.DisplayName,
 Email:DataCardValue36.Selected.Email,
 JobTitle:"",
 Picture:""
 },
 }
)

There are no errors being shown, it just doesnt work.

 

I am also having issues saving people picker column and attachments columns using the updateif function of the parent edit form. Any suggestions?

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Rebeccak,

     

    I just tested with the Person or group field (Single Value field) update with patch, it works at my side:

    Patch(Patchtesting,First(Patchtesting),{Person:{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:"i:0#.f|membership|" & Lower(User().Email),
     Department:"",
     DisplayName:User().FullName,
     Email:User().Email,
     JobTitle:".",
     Picture:"."}})

    For Multiple value enabled field, the schema should be changed as below:

    Patch(Patchtesting,F
    irst(Patchtesting),
    {Person:
    Table(
    {'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims:"i:0#.f|membership|" & Lower(User().Email), Department:"", DisplayName:User().FullName, Email:User().Email, JobTitle:".", Picture:"."})
    }
    )

    Regards,

    Michael

  • Rebeccak Profile Picture
    113 on at

    Thank you for your response. Where do i put the datacard value, so it knows which datacard to use for the selection?

  • Vaishali16 Profile Picture
    4 on at

    Any inputs on how to populate multiple people picker values?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard