cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
uah-syork
Level: Powered On

Patch to Sharepoint People Column Not working (Sharepoint Online)

When trying to Patch a People column in sharepoint from powerapps, I'm receiving an "Unknown Error has occurred" 

I have verified all other columns are working when I try to patch, yet the People Column does not, I have fired up another app as well as a test list and still recieve the same error. Is this happening to anyone else?

 

 

Here is my code:

Patch(Test, Defaults(Test),{Title: SubjectInput_1.Text, 
Requestor: 
{ 
 '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", 
  Claims:"i:0#.f|membership|" & Lower(User().Email), 
  Department:"", 
DisplayName:User().Email, Email:User().Email, JobTitle:".", Picture:"." } })

Any guidence would be appriciated. Thanks in advance.

2 REPLIES 2
Super User
Super User

Re: Patch to Sharepoint People Column Not working (Sharepoint Online)

I do see one issue and I am not sure if it is causing your problem but you could update it and see what happens. The display name parameter should look like this:

 

DisplayName:User().FullName,


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Highlighted
madimad
Level: Powered On

Re: Patch to Sharepoint People Column Not working (Sharepoint Online)

Did u solved ur issue of patching the person column ?? iam trying but i want to patch what user has selected 

Here is my code . Working hard with this with no luck

 

Patch(Projects,
Defaults(Projects),
{Title: DataCardValue25.Text,
Test_x0020_person:
{
'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Lower(DataCardValue33.Selected.Email),
Department:"", DisplayName: DataCardValue33.Selected.Email,
Email: DataCardValue33.Selected.Email,
JobTitle:".",
Picture:"."
}
})

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 51 members 4,120 guests
Recent signins:
Please welcome our newest community members: