cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Antoine_L
New Member

Cannot access SQL query output

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?

1 ACCEPTED SOLUTION

Accepted Solutions
vshets
Helper I
Helper I

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

vshets_0-1614956162343.png

Have you tried this instead of executing a sql query?

View solution in original post

6 REPLIES 6
vshets
Helper I
Helper I

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

vshets
Helper I
Helper I

Ok .. I found a solution that works for me. @Antoine_L 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

Antoine_L
New Member

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

vshets
Helper I
Helper I

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

vshets_0-1614956162343.png

Have you tried this instead of executing a sql query?

View solution in original post

Antoine_L
New Member

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.

vshets
Helper I
Helper I

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.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,007)