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

Monitoring the sql server and send email only once for a designated row value in a table

Hi,

 

I need to mornitor a sql server table "ReqOrder" with flow, when the field "Order_Status" has the value of  "New", an email will be sent to the order admin. I would like a single email to to sent out regardless of how many rows having the Order_Status of "New"in the sql server table.  Right now the flow I created will send out the number of emails which equals the number of rows having the Order_Status being "New".  This is a scope issue which I don't know where to make changes.

 

Thanks.

1 REPLY 1
Community Support Team
Community Support Team

Re: Monitoring the sql server and send email only once for a designated row value in a table

Hi mzhang,

 

I have a flow which is monitoring a SharePoint list, while I guess that it might be a reference for you. You could consider to use the action “Create HTML table” in your flow to send you an email which contain a full list of all of the items from the previous step.

 

More details about action “Create HTML table”, please check this doc for a reference:
https://flow.microsoft.com/en-us/blog/html-tables-csvs-computer-vision/

 

My flow is configured likes below, you may consider to use the action “SQL – Get rows”, then use Filter Query to filter the field which has the value of “New”.


Please try to modify the flow according to your needs, hope it can be a reference for you.

3.PNG

 

Please feel free reply if you need more help.

 

Best regards,
Mabel Mao

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

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,841)