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

Community site session details

Session Id : jQOs1mmcOmCPRjf7p3cv+k
Power Automate - Building Flows
Answered

Sending email when sql is updated - microsoft flow

Like (0) ShareShare
ReportReport
Posted on 1 Oct 2018 15:35:14 by

Scenario: When a new item is added to a sql table, start a flow and, if the condition (x) is true, and condition (y) contains (sometext), send an email to someperson. X,Y, and sometext will depend on the table you are using.

 

~Can someone help me create this flow. Do I need to have a gateway? Should I be using the exisiting SQL and any table or should I be able to create a new table? Is there a template already for this scenario?

I have the same question (0)
  • asdeev Profile Picture
    on 23 Oct 2018 at 16:10:08
    Re: Sending email when sql is updated - microsoft flow

    Awesome, thank you so much for your help!! 

  • Verified answer
    v-yamao-msft Profile Picture
    on 03 Oct 2018 at 09:47:15
    Re: Sending email when sql is updated - microsoft flow

    Hi @asdeev,

     

    If you are going to trigger a flow using SQL Server triggers, then you don’t need to have Gateway. As currently the SQL Server triggers don’t work for on-premises SQL Server.

    For your scenario, please use SQL Server trigger when an item is modified.

    Add the first condition, say it is a Yes/No column, then the condition could be configured as:

    @Equals(column,bool(‘’True))

    Under if yes branch, add the second Condition, say it is a text column, then the condition could be configured as:

    @Contains(column name, ‘sometext’)

    Under if yes branch of the second condition, add the action Send an email.

    SQL Azure is not available on my side so I made another test based on SharePoint list. Please just take it for a reference:

    1.PNG

    Related docs for your reference:

    https://flow.microsoft.com/en-us/blog/introducing-triggers-in-the-sql-connector/

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

      

    Best regards,

    Mabel Mao

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading complete