Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Power Apps Grid Write Back Access on SQL Server

(0) ShareShare
ReportReport
Posted on by 3

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. 

  • MarkBolger Profile Picture
    MarkBolger 3 on at
    Re: Power Apps Grid Write Back Access on SQL Server

    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)



  • timl Profile Picture
    timl 33,965 on at
    Re: Power Apps Grid Write Back Access on SQL Server

    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. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard