Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How do I get value from dataset query into an email?

(0) ShareShare
ReportReport
Posted on by 7

This is my first timing trying to use Flow.

 

I'm trying to create a Flow that runs a query on a dataset and then puts the results into an email.

 

How do I get the result from the query into the email? I've tried using a variable but can't see what to do next.

dataset into email.png

  • ihavenoname Profile Picture
    7 on at
    Re: How do I get value from dataset query into an email?

    Any idea what I would put in the Key and Value fields for this?

    ihavenoname_0-1691078106200.png

     

  • ihavenoname Profile Picture
    7 on at
    Re: How do I get value from dataset query into an email?

    Thanks @v-jefferni, I think I can see what's going on there. So does it have to be an EVALUATE statement returning a table? Or can I return a single value like a count of rows in a table or similar?

  • v-jefferni Profile Picture
    on at
    Re: How do I get value from dataset query into an email?

    Hi @ihavenoname ,

     

    The method is simple. See in below screen shot:

    vjefferni_0-1691051994142.png

     

    Just use a Select action to map columns then you can get the app using Compose ("Get" in the screenshot).

     

    Best regards,

  • ihavenoname Profile Picture
    7 on at
    Re: How do I get value from dataset query into an email?

    Thanks but I can't work out what's going on in their example. It seems far more complicated than what I'm trying to do.

  • v-jefferni Profile Picture
    on at
    Re: How do I get value from dataset query into an email?

    Hi @ihavenoname ,

     

    The basic process is as in the following thread:

    Solved: Run a Power Bi query against a Dataset with Condit... - Power Platform Community (microsoft.com)

     

    1. Run a query against pbi dataset

    2. Select, map columns

    3. use the value in Send email from Select, there would be an Apply to each come up automatically since output of Select is an array.

     

    Best 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