Hello,
I'm having some difficult patching a ComboBox selection into a new record in a SharePoint list. The SharePoint list I'm patching into is "People", and it has a lookup column "organization_id" which contains the ID of the organization that person belongs to. I have a separate Organization list.
Here is the Patch function I'm trying:
Patch(
People,
Defaults(People),
{
person_ID: 9999,'
name_of_person: NameInput.Text,
position_title: TitleInput.Text,
phone: PhoneInput.Text,
email: EmailInput.Text,
bio_url: BioInput.Text,
organization_id: LookUp('Organizations', ID=OrgComboBox.Selected.ID)
}
); Notify("Your data has been entered.", NotificationType.Success, 5000)
The People list (not all fields are shown here):

The Organization list (again, not all fields are shown):
Organization list (not all fields are shown)
I'm getting several errors with my Patch:
"Invalid argument type. Expecting a Record type, but of a different schema."
"Missing column. Your formula is missing a column "Id" with a type of "Number."
The function 'Patch' has some invalid arguments."
I don't understand what I'm doing wrong. If I'm patching a Lookup column, I should be giving a Record from Organizations right? Isn't that what LookUp('Organizations', ID=OrgComboBox.Selected.ID) does?