Hello,
I am working on a solution to my problem for a few days now.
The App works based on different SharePoint-Lists. I import a list (~15-20 rows with ~120 columns each) into a Collection with ClearCollect(). The app will modify the collection in different rows and columns. The changes made can be very little (2-3 changes) or entire rows that get changed (100+ changes).
The user should be able to upload the collection back into the SharePoint by pressing a button. I know that I can use patch() for that, but I don't understand how. Is there an easy way to blindly copy the whole collection back into the SharePoint? I don't need to look for changes made. Overwriting the old list with the Collection in the app would be all I need.
If patch() is the only option, can someone give me an example?
I will add a small Table with the first few columns of my list/collection. The table starts with some object specific information. The pattern of ColumnH-J (2x Yes/No, 1x text) will repeat for ~40 times.
'ClearCollect(LocalCollection;'DN-OK')'
LocalCollection:
| ColumnA | ColumnB | ColumnC | ColumnD | ColumnE | ColumnF | ColumnG | ColumnH | ColumnI | ColumnJ |
| text | text | text | text | date | date | text | Yes/No | Yes/No | text |
I started using PowerApps 2 months ago. I learn new things every day, but patch() is something I didn't understand so far. Looking into allready asked questions gave me even more '???' in my head.
I hope to lift some blockers in my head and work towards a solution to my problem.
If you have any questions, feel free to ask!
Thank you for your time and help! 😊