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 : 8zj4OOTvdfLaBvTGyJLTis
Power Automate - Building Flows
Unanswered

Get SQL rows and send email

Like (0) ShareShare
ReportReport
Posted on 12 Jan 2017 00:14:55 by Microsoft Employee

I am trying to get the list of the emloyees from my database and wanted to send them as HTML table in email  but i do not see any options iof sending the result set as email

I have the same question (0)
  • funzel Profile Picture
    2 on 02 Feb 2018 at 04:27:15
    Re: Get SQL rows and send email

    Hi,

     

    html output works for me (wihth log analytics query  for example)

    How do the same and send the output as csv file ?

     

     

  • v-micsh-msft Profile Picture
    on 17 Jan 2017 at 03:19:55
    Re: Get SQL rows and send email

    Hi @Phani,

     

    I came out an idea which might be a workaround here.

    Please follow the Action steps showing in the screenshot below:

    1. After add the Get Rows of SQL server, add a Compose Action, under the Dynamic content, search for Value;

    2. Choose the SQL "Value" as the Compose Inputs;

    3. Add the Send Email action after the Compose action, specify the Compose outputs as the Email Body, then click Advanced options in Send Email action, choose the IS HTML with Yes;

    4. Save this Flow.

    44.PNG

     

    The testing result is the following:

    45.PNG

    Regards

  • v-micsh-msft Profile Picture
    on 13 Jan 2017 at 03:17:02
    Re: Get SQL rows and send email

    Hi @Phani,

     

    Currently I don't think it is available to have the emloyees queried from SQL database be sent directly in HTML email format through Microsoft Flow.

    If we are using the SQL server Get rows, and add another action of Send an email, based on the outputs, it may automatically add an apply to each to the Send an email action, which means the email would send one employee name each time, and in total of the SQL table RowCount.

    Sorry to say that currently I have no workaround available to offer.

    Please consider to submit this as an idea in the Flow idea forum.

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

    Regards

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…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started