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

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
    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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard