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 Apps / How to Get OutputParam...
Power Apps
Unanswered

How to Get OutputParameters Value from Stored Procedure

(0) ShareShare
ReportReport
Posted on by

Hello,

I have a Flow in which I'm calling a SQL Server stored procedure and I want to get the value of the output parameter after execution. It'll be used in Power Apps to tell whether the execution from a stored procedure, which involves an API call, ran successfully. The return message will be descriptive if there was a failure rather than presenting a generic error message.

 

The logistics of the stored procedure are as follows:

Stored Procedure: Execute_PPS200MI_UpdLine
Parameters (IN): CONO, PUNO, PNLI, PLNS, DWDT
Parameter (OUT): ErrorMessage

 

Being new to Power Automate/Flow, I haven't found a clean way to get the OutputParameters value. There is where I get stuck.

 

Below is a screen capture of the flow. For testing purposes, I tried to pass OutputParameters into an email notification but it's not available to paste as a variable into the text of the email body. I will ultimately pass the value back to Power Apps.

 

eugenewms0405_0-1658412632875.png

Note: I have seen responses to prior inquiries about OutputParameters that answered how to get a result set back from a stored procedure. I only need to get the value of the output parameter, not a result set. Thanks in advance.

Categories:
I have the same question (0)
  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    Have you tried to insert a parse json action with the OutputParameters as the input.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @eugenewms0405 ,

     

    Could you please show me this action's output?(Or provide a demo)

     

    vbofengmsft_0-1658717147593.png

     

     

    Best Regards,

    Bof

  • jorge.daniel Profile Picture
    1,430 Super User 2024 Season 1 on at

    Hi,

     

    I don´t have a working flow using outputparameters but the body of the response to the SP does contain it:

     

    {
      "ResultSets": {
        "Table1": [
          {
            "A Key": "A Value"
          }
        ]
      },
      "OutputParameters": {}
    }
  • lninodeguzman Profile Picture
    3 on at

    Hello, did you find a solution?
    I'm in the same problem 😞

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard