Skip to main content

Notifications

Power Automate - Using Flows
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)

  • Max678 Profile Picture
    Max678 2 on at
    Execute stored procedure V2 only returns 1 result table?
    What happened to my question, everything is deleted?
  • Max678 Profile Picture
    Max678 2 on at
    Re: Execute stored procedure V2 only returns 1 result table?

    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)

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics

Restore a deleted flow