Hi,
I have build a PowerApps solution to update the status of a column in a Sql Server database.
On a Power BI report, my users filter items and when they have selected the data they want, they use the PowerApps canvas to update what they have selected.
To communicate between Power BI and PowerApps, I have used the great functionnality PowerBIItegration.Data.
Here is my problem.
In order to update only the records selected, I have used the Patch function because I can include a test. But maybe there is another function to update my table.
And after many research, I have found how to write the code to update one field of my table and I did that
Patch('[dbo].[ImportTable]',
First(Filter(
'[dbo].[ImportTable]',
'DOC ZIPPE' = OT.Text)),
{StatusColumn: true })
Sure, it works but only for the first record (logic, the Filter function is included in a First function)
I have tried to adapt the code with ForAll but without success.
How can I write the code to update many records?
Thanks in advance