Power Apps Patch is easy – Day 6 Person fields

Today’s learning on Patch is important as it relates to Person fields which are more similar than you might think. They are highly relevant to Patching to Sharepoint lists as they help us to maintain the ties to related lists.
Structure for Patching to a Person Field
The basic structure for patching to a person field is as follows – where cmbOwner is a combo box where a user is selected:-
Patch(
List,
Defaults(List),
{
Title: "New Title Value",
Person: {
Claims: cmbOwner.Selected.Claims,
Department: cmbOwner.Selected.Department,
DisplayName: cmbOwner.Selected.DisplayName,
Email: cmbOwner.Selected.Email,
JobTitle: cmbOwner.Selected.JobTitle,
Picture: cmbOwner.Selected.Picture
}
}
)
How to get to the course content
If you’ve signed up for the course you can head directly to the video here.
Check out this post to confirm how to sign up for the course.
https://powerplatformlearn.com/2021/02/14/7-days-of-power-apps-patch/
Check out the other posts in this series
Lookup and choice fields
https://powerplatformlearn.com/2021/02/24/7-days-of-power-apps-patch-day-5-lookup-and-choice-fields/
Date and time fields
https://powerplatformlearn.com/2021/02/19/7-days-of-power-apps-patch-day-4/
Power Automate and Yes/No fields
https://powerplatformlearn.com/2021/02/17/7-days-of-power-apps-patch-day-3/
Editing Items and working with Text and Numeric fields
https://powerplatformlearn.com/2021/02/16/7-days-of-power-apps-patch-day-2/
Introduction, JSON and Patching your first Item
https://powerplatformlearn.com/2021/02/16/7-days-of-power-apps-patch-day-1/