Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

encodedValue error when patching person column

(0) ShareShare
ReportReport
Posted on by 10
I am getting the following error when I try to patch a person column in a sharepoint list:
I am using the standard office 365 users connector and I have checked all the permissions on the sharepoint side (they look good.). I know the connector is working because the comboboxes to pick the users I am patching to the columns work fine.  I know the patch works because if i comment out the person parts of the patch statement i can patch entries just fine.
I assume I have some sort of error or typo in my code, but I can't find it.
Here is the patch button code:
 
Patch(
'Hoist Service Tickets',
Defaults('Hoist Service Tickets'),
{
Hoist: {
Id: LookUp(
'Hoist List',
cbHoist.Selected.'Resource Name' = 'Resource Name',
ID
),
Value: cbHoist.Selected.'Resource Name'
},
Issue_Receiver: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#f|membership|" & cbReceiver.Selected.Mail,
Department: "",
DisplayName: cbReceiver.Selected.DisplayName,
Email: cbReceiver.Selected.Mail,
JobTitle: "",
Picture: ""
},
Issue_Reporter: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#f|membership|" & cbReporter.Selected.Mail,
Department: "",
DisplayName: cbReporter.Selected.DisplayName,
Email: cbReporter.Selected.Mail,
JobTitle: "",
Picture: ""
}
}
)
  • Suggested answer
    robsmaze Profile Picture
    10 on at
    encodedValue error when patching person column
    Solved:
     
    over complicated the person patch.  Here is the correct code:
     
    Patch(
    'Hoist Service Tickets',
    Defaults('Hoist Service Tickets'),
    {
    Hoist: {
    Id: LookUp(
    'Hoist List',
    cbHoist.Selected.'Resource Name' = 'Resource Name',
    ID
    ),
    Value: cbHoist.Selected.'Resource Name'
    },
    Issue_Receiver: {
    Claims: cbReceiver.Selected.Mail,
    Department: "",
    DisplayName: "",
    Email: "",
    JobTitle: "",
    Picture: ""
    },
    Issue_Reporter: {
    Claims: cbReporter.Selected.Mail,
    Department: "",
    DisplayName: "",
    Email: "",
    JobTitle: "",
    Picture: ""
    }
    }
    )

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1