cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patricia_r
Helper II
Helper II

Patching Person or group SharePoint

Hello,

 

I am encountering this issue when i am trying to patch a person or group column type in SharePoint. After doing research here in the forums it was advice to enter it like this however not sure why i am still getting the error and it is not updating the manager column in SharePoint. Any thoughts on why this happening? 

 

 

 

patricia_r_0-1633645543493.png

Using a datacardvalue from a form 

patricia_r_0-1633645748660.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @patricia_r 

 

Combobox items property is

Choices(SPList.'PersonColumn')

 

Patch Command will be

Patch(
    SPList,
    Defaults(SPList),
    {
        'Assigned to': {
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
            Claims: "i:0#.f|membership|" & ComboBox1.Selected.Email,
            Department: "",
            DisplayName: "",
            Email: ComboBox1.Selected.Email,
            JobTitle: "",
            Picture: ""
        }
    }
)

 

 

View solution in original post

2 REPLIES 2
StalinPonnusamy
Super User
Super User

Hi @patricia_r 

 

Combobox items property is

Choices(SPList.'PersonColumn')

 

Patch Command will be

Patch(
    SPList,
    Defaults(SPList),
    {
        'Assigned to': {
            '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
            Claims: "i:0#.f|membership|" & ComboBox1.Selected.Email,
            Department: "",
            DisplayName: "",
            Email: ComboBox1.Selected.Email,
            JobTitle: "",
            Picture: ""
        }
    }
)

 

 

StalinPonnusamy
Super User
Super User

Hi @patricia_r 


Please let us know if anything needs on your post. We can help with this.

Please do not forget to give kudos if you find the suggestion helpful or Accept it as a solution if works fine to help other users to find it useful.

Thanks,
Stalin - Learn To Illuminate

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,163)