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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Using SQL Query Result...
Power Automate
Unanswered

Using SQL Query Results from the SQL Action used inside a Apply to each

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have situation where i have to run a sql query within a 'apply to each' to get some results from the variables within in the 'apply to each' , and pass it down stream to other new action with in the same 'apply to each'

 

But when i do it ,  the SQL objects results are not being shown on the right, when i wanted to use the 'Result Sets' into the compose action ( the last compose action at the end ). 

 

dsab81_0-1622837916296.png

 

The lock here is that the SQL query needs paremetres from the variables within Apply to each , so i cannot move it outside Apply to each.

 

Please suggest an alternative approach? 

 

Can i Setup another flow to run SQL Query  within the apply to each ?

and

whether it would allow me to pass the variable values from this flow to the child flow ?

 

 

 

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    Resultsets should be available in compose. Are you not able to see it in dynamic content? I am able to find it...

     

    May be you can remove and add the action again...

     

    PrasadAthalye_0-1622849238276.png

     

  • dsab81 Profile Picture
    Microsoft Employee on at

    i could not find the results of sql in dynamic content when i use Execute SQL Query , but works when i use some other action like 'Get rows' etc..

  • PrasadAthalye Profile Picture
    on at

    Something strange. as you can see, I am able to get it in dynamic content. Is your connection to action broken? Can you add another action? What happens when you click compose and open dynamic content?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard