Patch a SharePoint Person, Choice or Lookup column in Power Apps
Power Apps Patch fails on a SharePoint Person, Choice or Lookup column because each needs a record, not text. Copy-ready formulas for single and multi-select.
Power AppsFix a problem6 min read
A form saves fine with SubmitForm, but your own Patch fails, or seems to do nothing, as soon as it touches a SharePoint Person, Choice or Lookup column. The reason is the same every time: those are complex columns. Power Apps expects a record with the right fields, not the text you see on screen.
Note
Checked against Microsoft Learn on 8 October 2026. The examples use a list called Requests; use your own list and column names.
1. See the real error first
Patch rarely fails loudly. Wrap it so you see SharePoint's message:
IfError(
Patch(Requests, Defaults(Requests), { Title: txtTitle.Text }),
Notify("Save failed: " & FirstError.Message, NotificationType.Error)
)
The message usually names the column at fault, such as "Field 'Department' is required" or "The specified user could not be found".
2. Choice columns
A Choice column takes a record with a Value field.
Patch(Requests, ThisItem, { Status: { Value: "Approved" } })
Safer: take the record from the column's own choices, so a typo can't save a value that isn't on the list:
Patch(
Requests, ThisItem,
{ Status: LookUp(Choices(Requests.Status), Value = "Approved") }
)
Multi-select choice: a table of those records.
Patch(Requests, ThisItem, { Tags: Table({ Value: "Urgent" }, { Value: "Finance" }) })
// or, from a combo box with Items = Choices(Requests.Tags):
Patch(Requests, ThisItem, { Tags: cmbTags.SelectedItems })
3. Lookup columns
A Lookup column takes a record with the ID of the item in the other list and its display Value.
Patch(Requests, ThisItem, { Customer: { Id: 12, Value: "Contoso" } })
If you have the customer's item from the other list, map it:
With(
{ c: LookUp(Customers, Title = "Contoso") },
Patch(Requests, ThisItem, { Customer: { Id: c.ID, Value: c.Title } })
)
Or use a combo box with Items set to Choices(Requests.Customer), which already returns Id and Value:
Patch(Requests, ThisItem, { Customer: cmbCustomer.Selected })
Tip
Patching a LookUp result from the other list directly ({ Customer: LookUp(Customers, …) }) works for Dataverse lookups, not SharePoint ones. SharePoint needs the Id and Value record.
4. Person columns
A Person column takes a record that identifies the user by their claims string. Fill every field; send empty text for the ones you don't have.
Patch(
Requests, ThisItem,
{
AssignedTo: {
Claims: "i:0#.f|membership|" & Lower(User().Email),
DisplayName: User().FullName,
Email: User().Email,
Department: "",
JobTitle: "",
Picture: ""
}
}
)
To pick someone else, the simplest is a combo box with Items set to Choices(Requests.AssignedTo), then patch cmbAssignee.Selected. To search the whole directory instead, use the Office 365 Users connector and build the record from the result:
With(
{ u: cmbPeople.Selected }, // Items: Office365Users.SearchUserV2({ searchTerm: Self.SearchText }).value
Patch(
Requests, ThisItem,
{
AssignedTo: {
Claims: "i:0#.f|membership|" & Lower(u.Mail),
DisplayName: u.DisplayName,
Email: u.Mail,
Department: "",
JobTitle: "",
Picture: ""
}
}
)
)
Multi-person column: a table of those records.
Patch(
Requests, ThisItem,
{
Reviewers: ForAll(
cmbReviewers.SelectedItems As r,
{
Claims: "i:0#.f|membership|" & Lower(r.Mail),
DisplayName: r.DisplayName,
Email: r.Mail,
Department: "",
JobTitle: "",
Picture: ""
}
)
}
)
Warning
The person must be a member of your organisation who can be found in the directory. A guest, a shared mailbox, or an email with a typo fails with "The specified user could not be found".
5. The simple columns, for completeness
| SharePoint column | What to patch | Example |
|---|---|---|
| Single line of text | Text | { Title: txtTitle.Text } |
| Number, Currency | A number, not text | { Amount: Value(txtAmount.Text) } |
| Yes/No | true or false | { Paid: chkPaid.Checked } |
| Date and Time | A date | { DueDate: dpDue.SelectedDate } |
| Choice, Lookup, Person | A record (above) | { Status: { Value: "Open" } } |
| Clear any of them | Blank() | { AssignedTo: Blank() } |
The table uses the modern Checkbox. With a classic Check box, read chkPaid.Value instead. A Number input control already holds a number, so patch { Amount: numAmount.Value } with no conversion.
When it still fails
| Error or symptom | Check |
|---|---|
| "Field 'X' is required" | Every required column needs a value when you create an item, including Title |
| "The specified user could not be found" | The claims string: the i:0#.f|membership| prefix and a lowercase, correct email |
| "Invalid lookup value" or wrong item linked | The Id must be the ID in the other list, not this one |
| Saves a choice that isn't on the list | Use LookUp(Choices(…), Value = …) so only real choices can be saved |
| Nothing happens, no error | Wrap Patch in IfError (section 1), and check Monitor for the request |
| Works for you, fails for others | They need Edit permission on the list |
If the banner only says "Network error when using Patch function", our guide to that error shows how to find the real cause. If you're filtering big lists to find the item to patch, see Power Apps delegation and the 500-row limit.
Sources
- Microsoft Learn: Patch function
- Microsoft Learn: Choices function
- Microsoft Learn: IfError function
- Microsoft Learn: Text Input modern control
- Microsoft Learn: Decimal, Float, and Value functions
- Microsoft Learn: Checkbox modern control
- Microsoft Learn: Check box control (classic)
- Microsoft Learn: Number Input modern control
- Microsoft Learn: Connect to SharePoint from a canvas app: data type mappings
- Microsoft Learn: Office 365 Users connector
Add LowCodeStacks as a preferred source on Google
Did this fix it?
Get the weekly email
New guides and updates from LowCodeStacks, every Tuesday. One email a week, no more.
From LowCodeStacks, Regina, SK, contact@lowcodestacks.com. You can unsubscribe any time, from the link in every email or in your privacy settings. See the Privacy notice.
Comments
No comments yet. Share what worked for you.
Sign in to comment. Comments show under a display name you choose, never your email.