web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Cannot access SQL quer...
Power Automate
Answered

Cannot access SQL query output

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am creating a flow that will email the result of an sql query. However I cannot see the output of the SQL query as dynamic content

Antoine_L_0-1614872657295.png

 

I have seen in other places that this should appear as "ResultSets" but I can't see this. Is there a way to fix it?

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have the exact same problem. I can only see the outcomes from the manual trigger option.

    vshets_0-1614910647613.png

    This looks like a bug to me

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok .. I found a solution that works for me. @Anonymous see if you can modify your query to include formalParameters (see the green box highlighted below).

    Screen Shot 2021-03-05 at 6.25.08 AM.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Still not working for me. I wonder if that's because I am executing a stored procedure...

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hmm .. there seems to a related Action for stored procedures

    vshets_0-1614956162343.png

    Have you tried this instead of executing a sql query?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes I just did. it worked!

     

    But it still does not seem right that we can't access the output of a generic sql query.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I agree .. it is weird. When I ran without using `formalParameters`, I could clearly see the output from the sql query after testing it. But it was not showing as an option under dynamic content to use the output of the sql query. By default if you can see the output in the results, then it should be made available down stream. But it was not in this case. Had to use formalParameters as a work around.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard