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 / SQL Stored Procedures ...
Power Apps
Unanswered

SQL Stored Procedures to PowerApps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to pull in SQL data to a PowerApp but my SQL data is the output from a stored procedure.
It sounds like I need to use a Flow in conjunction with PowerApps to accomplish this.
I've got my on-prem SQL setup on a data gateway and that's working fine.
I can create my flow ok: Triggered by PowerApps button, set static params just for testing. But the output options are very limited.
Using the "Respond to PowerApp" step, the only option I have in dynamic content is the Return Code. Which, by the way, comes back as an empty string.
So I get no visible output in my app. I can check the flow status and see the output but there's nothing useful in there.

 


I've tested the sproc in SSMS with the same creds and it works fine. Returns 179 records.

Any ideas?

powerapps.png
Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Anonymous 

     

    If you wish to pass JSON data from Flow to PowerApps, then you can also use the Response action. Make sure that you pass the valid schema in the output.
     
    Also, if you just wish to pass string values, then it would be easier if you add a parse json action in the flow. You can get the response from SQL action from the previous run to design the schema. Once it is done, you can use keys from the Parse JSON action in the dynamic content.
     
    Hope this Helps!
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • eka24 Profile Picture
    20,925 on at

    Please watch this video on store procedure and powerapps from Brian:
    https://youtu.be/hTraYHbcIHc?t=30

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
     

    My issue is that I'm not getting any output from the sproc. I run it in SSMS and get 179 records.

    FlowNoOutput.PNG

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 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard