I have been looking at this for a while and I am once again stumped! Any suggestions would be great.
My App, loads a collection of Users and displays them in a gallery. If the user presses a minus button it removes the entry in the gallery. At this point, it does not Patch() the SP list. It just removes the entry from the collection and gallery.
The user can also search and 'Add' new names to the collection which shows all details in the gallery. Again, nothing is Patched to SP list at this point.
When all adding and removing is done, I need to Patch() the details back to SP. But, I cannot figure out the logic of remove() or patch(defaults()).
So I was thinking about deleting all records in the collection from the SP list and then doing a ForAll(Patch(()), but the logic of removeif() is messing with me. I am sure I am not looking at this properly.
ForAll(
collectionName,
RemoveIf(
spListName,
[@collectionName].teamID = ID
)
);
Any thoughts?