I've got a combo box in my app with Items property:
Office365Users.SearchUser({searchTerm:'Expense Approvers ComboBox'.SearchText}).DisplayName
I'm using a Patch function in the OnSelect of a button to patch into a SharePoint List. My function is like that:
Patch('Travel Expenses',Defaults('Travel Expenses'),
{Title: 'Expense Title Input'.Text,
'Travel Date': 'Expense Date Picker'.SelectedDate,
Cost: Value('Expense Cost Input'.Text),
Approvers: 'Expense Approvers ComboBox'.SelectedItems
}
)
I've tested the formula and it all works fine if I leave the last line (Approvers: xxx) outside. 'Approvers' is a multi-person SharePoint Column in my dataset
Looking at this article:
https://www.matthewdevaney.com/power-apps-patch-function-examples-for-every-sharepoint-column-type/patch-a-sharepoint-person-column-with-multiple-people-in-power-apps/
and watching this Shane Young video:
https://www.youtube.com/watch?v=b4Fb57UsJLI
I was under the impression my function would work ok, but it is producing an error.
Any thoughts what's the fix?