web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Can I use PowerApps on...
Power Apps
Unanswered

Can I use PowerApps on an Azure DB Table with SQL Triggers?

(3) ShareShare
ReportReport
Posted on by 14

Hello, 

 

I am looking for help and/or guidance on why I can't write use a table as a data source in PowerApps if that table has triggers, and I am looking for a workaround. Triggers are so common that I'm a bit flabbergasted that this problem exists. Here's my issue: 

 

I have some tables that I am using as a source for powerapps. the app I built has no issue querying the tables to build galleries and edit forms, but I can't write to the tables because each has a trigger. I disable the trigger, and viola, the app now works with no issues other than that now my database business logic is shot to hell because the triggers aren't running. I know there is nothing wrong with my triggers, as when I update the tables using SQL Server Management Studio they execute fine. I saw on some forums that as of this spring PowerApps "did not support tables with triggers". Also, there were no workarounds available, other than "not using triggers" resulting in a pathetically underpowered and, quite frankly, useless solution. If the triggers are executing entirely server-side, why would PowerApps care what they do? 

My triggers run after both insert and update, and some of them have no criteria while others are contiditional based on text in the inserted row. 

 

I would love to know if other people have found a way to adjust their triggers so that they work. I see no way of using a "stored procedure" to accomplish the task. 

 

I appreciate the advice and input. 

 

Thank you . 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    Hi @dthomson,

    Why do you add a SQL trigger within your SQL table?

    It is a known limit of SQL Server connector that Inserting and updating to a table does not work if you have a SQL server side Trigger defined on the table. To workaround this issue, you can do either of the following:

    1. Use a Stored Procedure or Native Query
    2. Remove the Trigger from your SQL table

    More details about the known limits of SQL Server connector, please check the following article:

    https://docs.microsoft.com/en-us/connectors/sql/#known-issues-and-limitations

     

    If you want to insert or update to a table which has a SQL trigger within PowerApps, I afraid that there is no way to achieve your needs in PowerApps currently.

    If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    In addition, as an alternative solution, you could consider delete the SQL trigger from your SQL table, and then use SQL Server triggers within Microsoft Flow to instead of it. The SQL Server triggers within Microsoft Flow as below:1.JPG

    Please also check the following article for more details:

    https://docs.microsoft.com/en-us/connectors/sql/#triggers

    More details about defining a SQL trigger flow, please check the following video:

    https://www.youtube.com/watch?v=EZEigG1VU9M

     

    Best regards,

    Kris

     

     

     

  • stapes Profile Picture
    894 on at

    Seeing as SQL Stored Procedures that perform an Update do not work with PowerApps flows, I do not see how this solution is any use.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard