Hi
I have a form in a Power App where one of the fields are connected to a multiselect people column in SharePoint. The form display the people from the SharePoint fields perfectly when the user selects an existing item. When the user clicks the Save-button the SubmitForm command is triggered, which works fine if the form submits a new registration. Unfortunately, when I try to make it submit an update of an existing item, it doesn't save any changes to the item (the form consists of other fields in addition to the multi-select field). I have replaced the combo box which was automatically added when creating the form because it only displayed a number instead of the name of the person. Using a classic combo box instead fixed this problem.
Here are some code snippets from the combobox component:
Items:
Office365Users.SearchUser(
{
searchTerm: Self.SearchText,
top: 5
}
)
DefaultSelectedItems:
Parent.Default
DisplayField:
["DisplayName","Mail"]
Parent component (card):
Update:
ForAll(
EmailNotificationDaybookCat_ComboBox.SelectedItems,If(!IsBlank(ThisRecord.Mail),
{
Claims: "i:0#.f|membership|" & Lower(ThisRecord.Mail),
Department: "",
DisplayName: ThisRecord.DisplayName,
Email: ThisRecord.Mail,
JobTitle: "",
Picture: ""
})
)
The live monitor throws three errors:
Category: Runtime - Operation: submitFormAsync - Result info: "One or more errors has occured"
Category: Function - Operation: Patch - Result info: "Network error whne using Patch function: The requested operation is invalid." and
Category: Network - Operation: Network - Result info: "Bad request" with status 400.
I appreciate any help I can get 🙏.