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 / Execute stored procedu...
Power Automate
Unanswered

Execute stored procedure V2 only returns 1 result table?

(1) ShareShare
ReportReport
Posted on by 2

Just checking on this.

I have the following stored procedure:

 

 

 

CREATE OR ALTER PROCEDURE dbo.Test
AS 
SELECT 1 as One, 2 as Two 

SELECT 'A' as Firstname, 'b' as lastname
Go

 

 

 


When I use Execute Store procedure V2 in flow it only returns the first table in the ouputs as "Table1" never the second result table. This is fine and all I can just separate the second result and call again but I wanted to check does anyone know if Execute Store procedure V2 supports multiple resultset from stored procs?. It seems like it should as it says "Resultsets" in the output pane, wanted to make sure I wasn't doing something wrong or needed a different license to get more than 1 result table returned from stored procedure. i tried to access "Table2" and got error saying it wasnt there. For example, maybe its named different and just not visible via the power automate debugging view (when you test and view raw output)

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

    Just adding information the error I get is

    'The template language expression 'body('dbo.test')?['resultsets']['Table2']' cannot be evaluated because property 'Table2' doesn't exist, available properties are 'Table1'. Please see https://aka.ms/logicexpressions for usage details.'.

    When I use  body('dbo.Test')?['resultsets']['Table1']' it works fine and result the result set table/row (1,2)

     

  • Max678 Profile Picture
    2 on at
    What happened to my question, everything is deleted?

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
Expiscornovus Profile Picture

Expiscornovus 199 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 194 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard