SQL Stored Procedure Supported In Power Apps

  Рет қаралды 11,907

Daniel Christian

Daniel Christian

Күн бұрын

Пікірлер: 31
@DanielChristian19
@DanielChristian19 9 ай бұрын
Connect with me: ☕Buy me a coffee: www.buymeacoffee.com/danchristian 🖇LinkedIn: www.linkedin.com/in/danchristian19/ 🚀 Instagram: instagram.com/dan.christian.33/ X (Twitter): twitter.com/dchristian19
@GroverParkGeorge
@GroverParkGeorge 9 ай бұрын
I can't tell you how exciting this is. Calling the Stored Procedure directly is a game changer for me and others trying to figure out how to incorporate PowerApps into their portfolio of development tools. Creating multiple flows to execute different Stored Procs, in multiple canvas apps is time-consuming and potentially error-prone. Thank you for publicizing this new feature.
@allaamber7433
@allaamber7433 8 ай бұрын
Great video, thank you Daniel! Could you please consider making a video demonstrating how to use a stored procedure to update or insert records? Thank you in advance.
@dougydoe
@dougydoe 9 ай бұрын
Very informative and thanks for sharing. I rarely use SQL but good to have this knowledge in my "bank" for the future.
@renedubon22
@renedubon22 9 ай бұрын
On my collection it shows as a ResultSets and has a Question mark ? below, but it doesn't show as a Table1 next? Any ideas?
@tedbabcock5887
@tedbabcock5887 8 ай бұрын
I got this too. Here's what it looks like in the data>response section in Monitor: "body": { "ResultSets": { "Table1": [
@pauloflaherty6757
@pauloflaherty6757 8 ай бұрын
The feature currently does not appear to have any support for output parameters or Return codes, so as a workaround you include a SELECT statement in your proc and the results will appear in Table1. Note that a proc can have multiple SELECT statements, so then you would get Table2, etc. one for each SELECT in your proc. You have to be careful not to have conditional SELECTs (e.g. SELECTS that sometimes fire and sometimes do not) or you won't know which Table the results end up in. Note that after any change to the output of a proc you need to remove it and re-add from Power Apps - currently there is no Refresh option.
@MarkPlumpton
@MarkPlumpton 8 ай бұрын
This is my problem too. If you run the Monitor (from Advanced Tools) you will see the data in the SP Response tab.
@tedbabcock5887
@tedbabcock5887 8 ай бұрын
I should clarify: I do see all of the data in the Monitor data>response section, and the Procedure is a normal SELECT with no output parameters or the like. So it seems that everything comes back from SQL Server fine. I just can't seem to access it within the app.
9 ай бұрын
Hi Daniel, Maybe you can set the Gallery Items to First(ResultSets).Value so you do not need to nest galleries?
@MarkPlumpton
@MarkPlumpton 8 ай бұрын
Hi Daniel - thank you for your very helpful video. This looks like a powerful technique. I am very new to PowerApps but I know SQL Server well. I followed your example closely and it worked but when I inspected the variables there was no result set or table. I ran a monitor against the app and I could see all the data in ResponseSets.Table1 - but it does not appear in the variables collection or in the gallery. Any ideas?
@raindenverraindenver717
@raindenverraindenver717 9 ай бұрын
I ran SQL profiler and run flow and then stored procedure in power app. And it do the exact same sql query for both methods. The only "broker" from this line exclude in logic -is the flow APIs functions I think. PA REST API -> AZURE SQL server and second PA REST API-> FLOW API->Azure SQL Server. The duration of operation via PA store procedure is less then via flow
@gznqtl
@gznqtl 4 ай бұрын
Thank you Daniel!, this is a super useful feature, for me SQL Server and Canvas are the best option. Thank you a lot!
@DanielChristian19
@DanielChristian19 4 ай бұрын
You are welcome!
@norkaloayza2558
@norkaloayza2558 4 ай бұрын
Muchas gracias por compartir su conocimiento, me ha ayudado mucho :D
@DanielChristian19
@DanielChristian19 4 ай бұрын
You are most welcome!
@v75tan
@v75tan 8 ай бұрын
Great Work. Thanks Can we create SP in Dataverse? How?
@Any_Where_
@Any_Where_ 8 ай бұрын
Need more videos ❤
@DanielChristian19
@DanielChristian19 8 ай бұрын
You got it!
@fadiahdab
@fadiahdab 8 ай бұрын
Hi danial , thanks for the amazing hints ,i have an inventory app and i have a lot of procedures to call through power automate,to insert and update the items,i am pretty sure doing that from powerapp is much quicker and i don't know ,this feature is in preview, which means i can use it on production environment,right?
@fercholada
@fercholada 8 ай бұрын
Hi. I'm very excited for this new feature since it enhaces drastically the functionality available for the apps I made. I've been testing this new feature for several days, however I found something strange. If I execute my stored procedure from PowerApps studio while editing the app, everything goes as expected, however, after publishing the app, I get an error that says that mu stored procedure is not allowed. Am I missing something about permissions? Did you try/experienced this same error? I'm using Azure SQL DataBase btw. Thank you!
@jadha_ravi
@jadha_ravi 3 ай бұрын
good video
@pauloflaherty6757
@pauloflaherty6757 9 ай бұрын
Doesn't look like there is any support for output parameters. I tried passing a context variable of the appropriate type into the stored procedure call in PowerApps, but its value didn't get updated. You *can* return values via a SELECT in the Proc but this means you have to modify/tailor your procs specifically to work with Power Apps which is less than ideal and given the many years this preview has taken to appear; I don't expect this shortcoming to be addressed any time soon.
@GroverParkGeorge
@GroverParkGeorge 8 ай бұрын
I can only get an output parameter back from a Stored Proc when I use the Flow approach, which does support returns. For that reason, I'm actually disappointed somewhat to learn that this new "native" approach to executing stored procs appears to return only table variables, which can be used in galleries. It seems pointless to go to that extent just to retrieve a single output value. I guess this means that there are two use cases. One, using stored procs executed by Flows, can return output parameters. The other, using the new native stored proc approach, can only return tables. I am looking for a real business case for this option, though.
@gontranharvey1714
@gontranharvey1714 8 ай бұрын
​@@GroverParkGeorge If I control the SP, I put my output parameters in the return select of the store proc. If the store proc does not return any data, i do something like this: "SELECT OUtput1, Output2, Output3" In powerapps you only need to put the result in a collection and get the First(). In my opinion, this process is simpler than using flow. But if you don't control the SP and can't make any changes, I'm with you, I don't understand why Microsoft gives us a half-baked solution. In real life a SP as a return value, input parameters,possibly Output parameters and possible one or multiple resultsets. So this feature should address all these features.
@sonicmoonshine4999
@sonicmoonshine4999 8 ай бұрын
This is awesome news, but there seems to be an issue with it running outside of development mode. Once you publish and run it, even in a development environment, it fails. 403 - "Procedure s_XXXXX is not allowed". Not sure if there is some sort of permission missing, but the access is identical.
@nihar4713
@nihar4713 2 ай бұрын
Brilliant
@NimeshRandina
@NimeshRandina 8 ай бұрын
I want to draw shipping routes for my Power app project. could you create a video.
@flasher702
@flasher702 8 ай бұрын
I think you can get rid of the extra gallery if you add a .ResultSets.Table1 Like this: OnSelect = ClearCollect(ColNewSQLReturn; Reporting.dboapiFinnTest(blahblahblah).ResultSets.Table1) Worked for me. I also skipped the Clear(ColNewSQLReturn) since that was just being flagged as an error and also deleting my variable. ...why did you even do that? Is this a stupid n00b question and/or is it something you erroneously neglected to mention in the video when you did it? Suggestion: for a video like this do TWO example implementations. The first one simpler, without any parameters on the on the Stored Procedure. The Stored Prodecure is just doing a JOIN or something and returning a Table. Second example maybe even slightly more complicated than this one. Thanks for the video. Keep it up.
Named Formulas & User Defined Functions in Power Apps
13:41
Reza Dorrani
Рет қаралды 43 М.
Power Apps New Data Experience
15:26
Daniel Christian
Рет қаралды 1,8 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,1 МЛН
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3,3 МЛН
I was just passing by
00:10
Artem Ivashin
Рет қаралды 18 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 18 МЛН
Why is Python 150X slower than C?
10:45
Mehul - Codedamn
Рет қаралды 30 М.
NVIDIA’s New AI: Stunning Voice Generator!
6:21
Two Minute Papers
Рет қаралды 109 М.
Use Power BI Map Visual in Power Apps Canvas
24:26
Daniel Christian
Рет қаралды 1,3 М.
Power Apps MODERN Gallery Design | Step-by-Step Tutorial
17:47
Reza Dorrani
Рет қаралды 79 М.
Top Power Platform Announcements at 2024 Ignite Conference
13:27
Daniel Christian
Рет қаралды 1,7 М.
Managing Credentials in Power Automate for Desktop
24:42
Daniel Christian
Рет қаралды 1,7 М.
Build Power Apps Faster with Modern Screen Templates
14:40
Reza Dorrani
Рет қаралды 37 М.
Getting Started with PowerApps and a Microsoft SQL Database
33:39
Chino Does Stuff
Рет қаралды 46 М.
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,1 МЛН