Skip to main content
Community site session details

Community site session details

Session Id : PKXR8ly/DRT0tmSpAwMm1z
Power Automate - Building Flows
Answered

Iterate through results of a Power Bi dataset query

Like (0) ShareShare
ReportReport
Posted on 10 Jan 2023 14:09:42 by

I am building a flow that will query a Power Bi Dataset, and process each record (to send an email with the record's content).

I have built a similar flow that reads a SharePoint list, but apparently a query against a Power Bi Dataset is a different animal.

 

I have a For Each after the query. The For Each step seems to recognize that the input is from a PBI dataset query because when selecting an output, it shows "First Table Rows" along with some other options (See attached pic). In the following email, when clicking in the body and showing the Dynamic values, the only option that appears, "Current Item".

 

So at this point what I need are links to examples or documentation on the data structures and flow steps required to step through the query results.

 

Thanks

 

  • Verified answer
    Community Power Platform Member Profile Picture
    on 20 Jan 2023 at 19:44:58
    Re: Iterate through results of a Power Bi dataset query

    Here is another approach.

     

    Here is a summary of the problem:

    Summary:

    The workflow produces two JSON datasets containing the results of a query.

    If I use the result from the query, I do not have access to the individual fields in the data set.

    If I use the result from the Parse JSON, I get an error message indicating that the result is null.

     

    The solution was to ditch the Parse JSON step, use First Table Rows to drive the Apply to Each, and then perform a Compose Action using the Current item. That exposed the individual columns of the data is the key to the solution.

     

    donsthompson_0-1674243834424.png

     

     

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

Telen Wang – Community Spotlight

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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 complete