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 / Return Stored Procedur...
Power Apps
Answered

Return Stored Procedure (SQL On Prem) Result (Single Row) from Flow to Power App

(0) ShareShare
ReportReport
Posted on by 13

Hi There,

I have a Power App button which executes a simple Flow that calls SQL (On Prem) stored procedure and the output generated in Execute Stored procedure (V2)  is as below... i.e. Stored Proc just returning 1 row with 4 columns. I am having hard time to parse it and get this columns back to my APP. Please can someone advise? I was trying to play with 'Parse JSON' and 'Select' after my Execute SP in flow but may be I'm doing something wrong to generate schema etc.. somehow not getting these columns (ErrorCode (Int), ErrorMessage (Varchar200), ReturnData (int), ReturnMessage(varchar(200)) 

 

{
  "Table1": [
    {
      "ErrorMessage""Successfully Synched Data",
      "ErrorCode""0",
      "ReturnData""",
      "ReturnMessage""Successfully Synched Data"
    }
  ]
}
Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @AMJEE ,

     

    You could use response action in flow.

    v-xiaochen-msft_0-1623634213454.png

    variables('Thevar').Table1

    v-xiaochen-msft_1-1623634251468.png

    [
     {
     "ErrorMessage": "Successfully Synched Data",
     "ErrorCode": "0",
     "ReturnData": "",
     "ReturnMessage": "Successfully Synched Data"
     }
     ]

     

    v-xiaochen-msft_2-1623634273917.png

    v-xiaochen-msft_3-1623634282464.png

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

     

     

     

     

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 Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard