cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Update SQL Server Table with trigger

Apparently this is was raised a couple of times a year ago. Using the Patch funktion to update a table that has a trigger on the SQL server. Unfortunatley we can not change or delete the trigger on the table. Is there by now any update on the issue or a possible workaround? We would like to use powerapps but obviously without the possibility to update a table it does not really make sense.

 

Thx,

Uli

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi,

 

Currently this issue is still under developing.

A possible workaround is to take use of SQL Server stored procedure with Microsoft Flow.

Quoted:

"

The followings are some of the known limitations of using SQL connector

  1. Stored Procedures cannot be invoked from PowerApps. A workaround is to create a Flow and invoke the Flow from PowerApps.

  2. Insert and update 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:

    • Use a Stored Procedure

    • Remove the Trigger of your SQL table

"

Refer to this article.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Community Support
Community Support

Hi,

 

Currently this issue is still under developing.

A possible workaround is to take use of SQL Server stored procedure with Microsoft Flow.

Quoted:

"

The followings are some of the known limitations of using SQL connector

  1. Stored Procedures cannot be invoked from PowerApps. A workaround is to create a Flow and invoke the Flow from PowerApps.

  2. Insert and update 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:

    • Use a Stored Procedure

    • Remove the Trigger of your SQL table

"

Refer to this article.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi, this is what we have done as a workaround - stored procedures and flow. It does the job - though it is a little long winded to get to a result which should be done via the control. Looking forward to see this included in the edit/html control.

Any target date to solve this issue? I don't think this is difficult for Microsoft right .

Hello Mickael @v-micsh-msft !


Your post is from May 2018. Do you have any update on that subject from the dev team, please ?

 

Because your workaround seems fine until... Until I try to get my SQL connector on flow to work with my OnPremise SQL Server through On-Prem data gateway.

 

This is quite inconvenient, because my customer had to buy more licences to be able to run this getaway and it won't even work by default... as a workaround for things not even developped yet, though they were "under development"!

Thanks a lot for your help, I appreciate it.

 

Regular Visitor

Is there any plan to update this? It's now almost two years later and not being able to write to tables with triggers is a big deal. Yes, there are workarounds, but it's clunky.

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (18,036)