I have a form with a textinput box that will contain the email address of one of my organisations Office365 users.
I need to use the Patch function to patch this textinput box to a new record in a sharepoint list person column. This column should record the user who's email address was in the textinput box but I get an error message about the argument not matching the record type. I have tried both of the following approaches with the Patch function unsuccessfully.
Patch('MyList', Defaults('MyList'), Employee: UserEmailTextInput.Text)
Patch('MyList', Defaults('MyList'), Employee: Office365Users.SearchUser({searchTerm:UserEmailTextInput.Text}).DisplayName)
Neither works. Any solutions much appreciated.