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.
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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 397 members 5,684 guests
Please welcome our newest community members: