I am trying to Patch a Sharepoint "Person or Group" column with Office365 Users from Combo Box.
The Combo Box "Items" code is as follows and works to search Users from the Office 365 connector:
Filter(Office365Users.SearchUserV2(
{
searchTerm:Trim(Self.SearchText),
isSearchTermRequired:false
}
).value,AccountEnabled=Not("#EXT" in UserPrincipalName
))
DefaultSelectedItems =
It is blank
My Patch function is as follows but does not work. Specifically the Combo box is causing the error:
Patch('Front Desk Messages',
Defaults('Front Desk Messages'),
{
Title:txt_ContactName.Text,
'OSARC Contact':cmb_OSARC.Selected.DisplayName,
'Contact Date':Date_Contact.SelectedDate,
'Contact Time':txt_ContactTime.Text,
'Contact Phone No':txt_ContactNumber.Text,
'Contact Email':txt_ContactEmail.Text,
'Contact Message':txt_ContactMessage.Text
}
);
Reset(txt_ContactName);
Reset(cmb_OSARC);
Reset(Date_Contact);
Reset(txt_ContactTime);
Reset(txt_ContactNumber);
Reset(txt_ContactEmail);
Reset(txt_ContactMessage)
I also attached another patch function that I have tried. Nothing seems to work.