Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

SQL stored procedure not returning as expected



I am having an issue with a SQL stored procedure returning the right data to my PowerApp. The stored proc is triggered via a Flow.


I have followed the instructions here:

but I am still not getting the desired output.


I have attached an image of the PowerApp (PowerAppScreen.png). The button is bound with the following code:

ClearCollect(ElvisTileDetails, ElvisMobile_Dev_GetElvisTileDetails.Run(TextInput2));

The ElvisMobile_Dev_GetElvisTileDetails is the Flow attached as a screenshot too (FlowScreen.png).


But the fields that I expect to appear in the Collection on my PowerApp (e.g., sortOrder, DetailField1) are not appearing. The only fields available are Value and IsSelected.


Would anyone know what the potential issue is? I can provide more information if need to be. Thanks.

Level 8

Re: SQL stored procedure not returning as expected

Can you try the below two points:


1. In your flow - Response Activity: Did you define the schema in "Response Body JSON Schema"

2. If above is not done, make changes to apply the schema and refresh the Flow called in button event



Level 10

Re: SQL stored procedure not returning as expected

Probably you made changes to the flow after you connected it the first time from PowerApps.

What you should do is go to view-datasources and delete the flow. Then add a buttun, go to action and connect the flow again. Delete the button and try your button.

Now it should work.

Hope this helps,


Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 51 members 4,868 guests
Please welcome our newest community members: