Good Day,
This particular issue has stumped me for the past few days.
I pull data into a collection (colProjRequests) from a dataverse table 'Project Requests'. In this dataverse table is a Yes/No toggle on a column called Request Active
I present this data, along with some related data in a Gallery.
I have added into the gallery a button that allows the user to close or open a request, and patches this back to the collection. Using this formula.
If(ThisItem.'Request Active' = 'Request Active (Project Requests)'.Yes,Patch(colProjRequests,LookUp(colProjRequests,ID=ThisItem.ID),{'Request Active':'Request Active (Project Requests)'.No}),Patch(colProjRequests,LookUp(colProjRequests,ID=ThisItem.ID),{'Request Active':'Request Active (Project Requests)'.Yes}))
I then filter the gallery on Yes/No status. This works.
However whenever I try to patch that collection back to the dataverse table it doesn't change the toggle for yes/no.
I have a separate button that patches the gallery back to the dataverse table and it uses the following formula.
Patch('Project Requests',colProjRequests)
I have looked at a few similar posts on this forum, and have tried a few other methods. I dont really want to revert to editing the dataverse table directly. Is anyone able to help, please?