I would like to call a SQL Server stored procedure called get_customer from my PowerApps flow. How do you do this?
I can see in posts that others have been able to do this but I cannot see the option in PowerApps and the only data source options I have is to access the tables and views and not the stored procedure.
I have a button on screen 1 and on click I want it to call a stored procedure and then display the results in a list on the same form. How can I do this?
Thanks
If I understand correctly:
The method I have been calls the stored procedure through Flow. Here's a general idea of how to construct this flow:
body('Execute_a_SQL_stored_procedure').ResultSets.Table1
The naming in this step may vary depending on your setup.In PowerApps, select your button. You can bind it to the flow you just created:
Action > Flows > select your flow
Collect the results of your flow to a collection.
Here is a more precise blog on the related topic for executing a general query, but it applies to your question: https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/
Here is a video demonstrating the flow and the Response action in multiple contexts: https://www.youtube.com/watch?v=MoifwDFKSTo
Please let me know if this has helped.
Mr. Dang