I have two collections. A button groups data from the first collection, groups it by a key field, and adds it to a second collection while removing those items from the first collection. The second collection is displayed to the user in a gallery. If they want to remove that item from the gallery, those records need to go back to the first collection. The issue I'm having is that I expected to be able to simple ungroup the item and patch it back into the first collection. However, this code doesn't work:
Ungroup(ThisItem,UserDetail)
It doesn't recognize that the item is something that can be ungrouped and I'm not sure how to reference it.
This is the function that adds items to the second collection:
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.