Hello
I'm pretty new to the whole Power Platform and i'm stuck, so any help would be appreciated.
I currently have a Combobox that is used to search and select a user to assign a task by using Office365Users.SearchUser.
The selected user is patched to a sharepoint list (Column: Assigned To) and saved in a people field, which works fine.
The user should stay selected in the Combobox for this specific entry, but can be manually changed if required and will then be patched to the sharepoint list.
Everything works fine for the first time the user is entered or changed, but if the task is updated without a change of user and i try to patch again, it tells me the user can't be found (The specified user i:0#.f|membership| could not be found.)
This is my patch function:
Patch(
Batch_Tracker_Comments_1,
ThisItem,
{
Page_Number: 'Input Page No.'.Text,
Description: 'Input Description'.Text,
Progress: 'Dropdown Progress'.Selected.Value,
Category: 'Dropdown Category'.Selected.Value,
Createx: VarCreated,
Assigned: VarAssigned,
Comment_Communicated: 'Date Communicated'.SelectedDate,
Comment_Resolved: 'Date Resolved'.SelectedDate,
'Assigned To':{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims:"i:0#.f|membership|" & 'Search Operations User'.Selected.Mail,
Department:"",
DisplayName:'Search Operations User'.Selected.DisplayName,
Email:'Search Operations User'.Selected.Mail,
JobTitle:"",
Picture:""}
});
Refresh(Batch_Tracker_Comments_1);
Reset('Search QA User');
Reset('Search Operations User')
These are my Items for the ComboBox:
Office365Users.SearchUser({searchTerm:'Search Operations User'.SearchText})
DefaultSelectedItems:
ThisItem.'Assigned To'
I saw in another thread that "DefaultSelectedItems" just shows the default, but its not really selected.
I've been trying to resolve this issue for hours, but i'm stuck.
Thanks a lot in advance and kind regards