PowerApps doesn’t seem to support the execution of On-Premise SQL Server stored procedures.
So, is it possible to interface with an On-Premise web service that connects to the SQL Server and executes the stored procedure, which in turn, returns data?
Solved! Go to Solution.
Hi @LynnCaveny,
You may take a look at the custom connector:
Register and use custom connectors in PowerApps
Further, You could take a try to add a flow to execute stored procedure (supports SQL Server stored procedure with on-premise gateway), as currenlty there is no method to get the flow results to the App in PowerApps, you need to connect to the corresponding data directly to check the results in PowerApps.
Regards,
Michael
So far we haven't gotten PowerApps approved for our company, but have you tried using a table function. It's not as good as a stored procedure, but you can pass in parameters and it will return a table. Here is an example I've used in PowerBI, but I'm thinking it would work int PowerApps:
SELECT *
FROM POWERBI.TF_PB00002_Open_Activity_List('All')
PowerBI looks at it as just another DirectQuery and a table function can contain most of the logic you would normally put in a stored procedure.
Hi @LynnCaveny,
You may take a look at the custom connector:
Register and use custom connectors in PowerApps
Further, You could take a try to add a flow to execute stored procedure (supports SQL Server stored procedure with on-premise gateway), as currenlty there is no method to get the flow results to the App in PowerApps, you need to connect to the corresponding data directly to check the results in PowerApps.
Regards,
Michael
Is this still the case? No responses (output paramaters or result sets) supported from stored procedures through the gateway connector?
Bump up - any Idea raised for this? I would like to have the outcome of procedure (table) in powerapps directly. (in collection)
Is there a uservoice or something shere we can vote on this? This is a major drawback!
we ended up redesigning our solution to not depend on the response in one app, and another we moved the database to AzureSQL which does allow responses from the stored procedures.
Ah, so I can call the sproc, i just dont get a ressponse? I didn't get that in the conversation above, or the docs.
So far we haven't gotten PowerApps approved for our company, but have you tried using a table function. It's not as good as a stored procedure, but you can pass in parameters and it will return a table. Here is an example I've used in PowerBI, but I'm thinking it would work int PowerApps:
SELECT *
FROM POWERBI.TF_PB00002_Open_Activity_List('All')
PowerBI looks at it as just another DirectQuery and a table function can contain most of the logic you would normally put in a stored procedure.
You can get a response value, true or false, but getting the returned data seems impossible. The flow runs from a button in the app and if you examine the flow afterwards, you can see all the returned data in the flow in resultsets table1. But I can't figure how to retrieve it to the app itself. Very frustrating, Microsoft could do so much better.
User | Count |
---|---|
140 | |
136 | |
78 | |
77 | |
72 |
User | Count |
---|---|
226 | |
178 | |
68 | |
68 | |
58 |