Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Microsoft Flows Stored Procedure unable to find return code

(0) ShareShare
ReportReport
Posted on by

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,

  • v-xida-msft Profile Picture
    on at
    Re: Microsoft Flows Stored Procedure unable to find return code

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow