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 / Return Multiple tables...
Power Automate
Unanswered

Return Multiple tables From Stored Procedure through Execute Sql Statement in power automate desktop

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I am executing a SQL Stored Procedure by "Execute Sql statement" in power automate desktop The Stored Procedure returns 5 tables and I've checked that when I execute this in Management Studio, all tables are returned. When I execute this through power automate and examine the output body only the first table is shown to be returned . 

 

Please help on this .

Thanks in advance.

  • PetrosF-MSFT Profile Picture
    Microsoft Employee on at

    Hi @NeerajYadav 

     

    Please note that the output variable of the "Execute SQL statement" Action is a data table variable.

     

    Currently we don't have a way to store multiple data tables into a variable with a single action.

     

    I will forward this request to the team to consider it for implementation.

     

    Thank you!

  • aqureshi Profile Picture
    4 on at

    Hi Team Microsoft,

    How to get Multiple Tables From Stored Procedure through Execute stored procedure (V2) in power automate.

    Regards,

    Ali W. Qureshi

  • AbdulSamadHMC Profile Picture
    4 on at

    Is this functionality implemented?

  • HeribertoC Profile Picture
    4 on at

    Please tell us about any update. Regards!

  • skt2508MSPP Profile Picture
    2 on at

    Please any update on this?

     

    Thanks/Santosh

  • DeepaliJagtap Profile Picture
    68 on at

    hi,

    We were facing same challenge, so in order to resolve it, we separated the query into separate sql file and executed them one by one. If there is dependency between those query and if any temp tables are getting created then separate it out create all global temp table first and then execute actual table generating query one by one.

    Please mark this as solution if it helps you solve issue. Happy to help you more.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard