Hi Guys,
I have a challenge that is a bit beyond my capabilities, firstly, let me explain what I have built so far:
I have an app that allows users to submit approval requests. Each request can have one or many items associated with it. In order to utilise a repeating table I have a gallery in my form with a collection as source. Once the user submits the form, the OnSuccess property of the form calls a patch function to write the collection contents to a SP list.
The challenge I have is the user may recall requests to the app to edit them, this also includes editing the items associated with each request, they may edit existing items, delete items and add new items.
What I need to be able to do is sync the data between my collection and SP list. I need to be able to do 3 things:
1. Add new items to my SP list (where exists in collection but not my list)
2. Remove items from my SP list (where exists in list but not collection)
3. Update items in my SP list (where exists in both collection and SP list)
I really don't know where to start with this.
Any help would be greatly appreciated 😊