cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shegs
Level: Powered On

SQL trigger from View

ok so I finally got my tables to work in flow, barely... I have to manually type them all in because Flow won't retrieve the list of tables...

 

anyways I'd like to use a vew I've created as a "when item is created" trigger. the view includes a few more detail columns that are necessary for the remaining actions.

 

I have typed in the view as a table in the trigger, and when it feels like connecting to my gateway, it pulls the columns in for later in the flow, but I haven't had it work yet and am curious if it's even possible before wasting too much of my time troubleshooting.

 

Thanks

-Aaron

2 REPLIES 2
Community Support Team
Community Support Team

Re: SQL trigger from View

Hi @Shegs,

 

Could you please share a screenshot of your flow's configuration?

Do you want to fire your flow when a new item is created in your SQL view within your flow?

 

The "When an item is created" trigger of SQL connector is used to detect if there is an new item is created in your SQL table currently. If you want to detect if there is a new item is created in your SQL View using the trigger, I afraid that there is no way to achieve your needs in Microsoft Flow currently.

 

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

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Shegs
Level: Powered On

Re: SQL trigger from View

as we have pretty good data separation, views work better for us so we can view sales records and the customer information in one layout. I feel like I have a grasp on how to make some of these work in the script, I was having issues finding out why my tables weren't triggering. I finally found the requirements for an SQL table to become a trigger, and they make sense (they have to have a key field and a rowversion field) (I have a feeling these column identities would be lost in a view) 

While most of these tables were made long before rowversion was a thing, I will have to consider implementation. until then, I will just use a scheduled trigger that pulls rows from a view.

 

Thanks

-Aaron

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,133)