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 / Microsoft Flows Stored...
Power Automate
Unanswered

Microsoft Flows Stored Procedure unable to find return code

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I have a stored procedure that is returning a numeric value with the use of RETURN(@Number).

When I call the procedure from microsoft flows the return code propagated is empty.

Thanks,

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

    Hi @sundayDriver,

     

    Could you please share a screenshot of your flow’s configuration?

    Further, could you please show a bit more about your stored procedure?

    The return code indicates the execution status of a procedure. As with OUTPUT parameters, you must save the return code in a variable when the procedure is executed in order to use the return code value in the calling program.

    I have made a test on my side and could not be able to get return code by executing the stored procedure. The screenshot of my stored procedure as below:1.PNGThe result of executing the procedure as below:3.PNG

     So the return code propagated is empty when we call the procedure from Microsoft Flow. But we can use variable to store the return code and print it as below:

     

    2.PNG 

    More details about Returning Data Using a Return Code in stored procedure, please read the article as below:

    Returning Data Using a Return Code

     

     

    Best regards,

    Kris

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard