Hi,
I like to add the current user to a list in the collection.
When opening the app (screen1, onvisible) I collect the current user:
ClearCollect(
colMembersToAdd,
ForAll(
Filter(
OpSPLijst,
Id = Gallery1.Selected.Id
),
{
Attendees: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
DisplayName: User().FullName,
Email: User().Email,
JobTitle: "",
Picture: ""
}
}
)
)
However, when clicking a button from a gallery, I want to add the current users for that record in the collection. These are coming from a table in sharepoint: "OpSPLijst".
How can I add these users to the existing collection. In addition, how can i patch the collection with all the users back to the table?
Current code for button:
Collect(
colMembersToAdd.Attendees,
ForAll(
Filter(
OpSPLijst,
Id = Gallery1.Selected.Id
),
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Claims: Namen.Claims,
Department: Namen.Department,
DisplayName: Namen.DisplayName,
Email: Namen.Email,
JobTitle: Namen.JobTitle,
Picture: Namen.Picture
}
)
);
The collection is not updated. I only see the current user in the collection.
Thank you