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 / SQL Stored Procedure -...
Power Automate
Answered

SQL Stored Procedure - Output parameters

(0) ShareShare
ReportReport
Posted on by 587

Source is a SQL Server, it on premise and connected through a gateway.


From Flow I call a Stored Procedure, in which I have declared an output parameter

@XMLFile XML OUTPUT

Now I don't get back the output parameters from my stored procedure, see picture
2019-01-24 10_37_38-Edit your flow _ Microsoft Flow.png

 

I noticed when I do this in an Azure SQL Server instance, so whithout a data gateway, it will return the output parameter as expected.

 

So my question is if anybody knows if this is a bug, a limitation or If I'm doïng something wrong?

 

Hope someone can help.

 

Paul

Categories:
I have the same question (0)
  • Verified answer
    v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @KroonOfficeSol,

     

    When invoking a Stored Procedure on an on-premises SQL Server, we have the following limitations:

    • Output values for OUTPUT parameters are not returned. You can still specify input values for OUTPUT parameters.
    • Return value is not available.
    • Only the first result set is returned.
    • Dynamics schemas are not supported for result sets.

    Please check the following doc for more details:

    https://docs.microsoft.com/en-us/connectors/sql/

     

    Best regards,

    Mabel

     

  • marles Profile Picture
    4 on at

    Hi

     

    I got the output value using a function substring() with "Resultsets". For this operation, i had to create some variables before containing lenght about "Resultsets" and position number for some characteres to identify since and until. 

     

    Regards

     

    Mitchel Arlés

  • Kinson-Lam (WCC) Profile Picture
    36 on at

    Hi @v-yamao-msft , 4 years has passes, have this limitation been solved?  How can I get an output parameter from a stored procedure when calling from Power Automate?  

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 889

#2
Valantis Profile Picture

Valantis 830

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard