I have worked my way through all of the past posts I can find on this topic, which has got me to the point where I am currently.
I have a combobox where the user can select multiple people and this should write back to a column in SharePoint. I am using the Office365Groups connector and after many hours of research, I've finally managed to get it to display the names, allow the selection and write them in a format that SharePoint can understand, however I'm now facing a situation where only the last person in the list ever gets written to the column in SharePoint.
The relevant part of my patch function (all other parts working as expected) is:
Attendees:
ForAll(DataCardValue12.SelectedItems,
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Department: "",
Claims: "i:0#.f|membership|" & DataCardValue12.Selected.userPrincipalName,
DisplayName: "",
Email: "",
JobTitle: "",
Picture: ""
})
For DataCardValue12:
Items = Office365Groups.ListGroupMembers("471b8aba-7b1a-426a-ba75-9b6008455b58").value
DefaultSelectedItems = LookUp(Office365Users.SearchUser(),Mail=User().Email)
Any help would be much appreciated.