I want to edit values in a column in an SQL Table through Power Apps. I have developed an App for this. Its Working fine and submits details successfully through Patch. But the changes are not written back in SQL table. I'm using SQL Server Management Studio 20.1 and have connected it with Power Apps through On Premises Gateway. The connection was successful. But I'm unable to write back despite my App is working fine. A help on this would be highly appreciated. Thanks.
I have created App successfully but I want to edit records in SQL database which is on SQL Server. Power Apps Submits record successfully, but SQL database is not updated accordingly.
My Patch Formula is,
Patch |
( |
Sales, |
ShowColumns( |
ColGridUpdates, |
Sr_No, Name, Quantity |
) |
); |
Notify |
("Changes Saved Successfully",NotificationType.Success, 4000); |
Clear(ColGridUpdates) |
Hi @MarkBolger
>> Its Working fine and submits details successfully through Patch. But the changes are not written back in SQL table.
Can you clarify what you mean by this? Are you saying that you're able to create a new record by calling Patch, but calling Patch to subsequently edit a record fails?
If you could paste your Patch formula, that would help.