Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Get SQL rows and send email

(0) ShareShare
ReportReport
Posted on 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

  • funzel Profile Picture
    2 on at
    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 at
    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 at
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1