Тёмный

PowerApps - Pass string array to SQL Stored Procedure from PowerApps using Flow (Tutorial) 

Dave's Tech Tips
Подписаться 10 тыс.
Просмотров 24 тыс.
50% 1

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@Man.0815
@Man.0815 3 года назад
Simply Superb! Excellent clarity on the subject and hence easy explanation. Thanks for sharing!
@artemburov9456
@artemburov9456 3 года назад
Thanks for the great video! I do appreciate those little details you gave for each step. It saved hours of my work and tons of energy. Details are key.
@KaineVarley
@KaineVarley 4 года назад
Hi Dave, Flow does support Stored Procedure calls over On-Premises Data Gateways. Not sure if this was introduced since your video. 1) In Flow, from your 'Execute stored procedure (V2)' step, select the ellipsis menu, top right. 2) At the bottom of the context menu, select '+ Add new connection' 3) In the 'Authentication Type' drop-down, select either 'SQL Server Authentication' or 'Windows Authentication' to reveal the Gateway options Hope it helps - Kaine
@DavesTechTips
@DavesTechTips 4 года назад
Hello Kaine, thank you for taking the time to send this info. You are correct, Flow does support Stored Procs through the DGW. As far as I am aware this is what is mentioned in the video as well (at around 00:35). What is not support by Flow through the DGW is SQL queries. Please let me know if there is somewhere in the video where I am not stating these facts correctly.
@KaineVarley
@KaineVarley 4 года назад
@@DavesTechTips Apologies Dave, I may have made an assumption. Anyway, hopefully it will help someone... Stay safe
@DavesTechTips
@DavesTechTips 4 года назад
Absolutely no problem man, thanks for taking the time to reach out. Have a great day and keep well, stay in 👍
@alwynkotze9891
@alwynkotze9891 4 года назад
@@DavesTechTips Haai Dave, dink jy hierdie funktionaliteit is al beskikbaar? Dit voel vir my asof dit 'n ongelooflike populere aanvraag is, maar vir een of ander rede wil Microsoft eenvoudig nie dit aanspreek nie. Kan mens nie egter 'n query in 'n stored procedure sit en dan dit so run met flow nie? Groete.
@starmole5000
@starmole5000 Год назад
Dave this is finally being supported natively in powerapps with the release wave 2 2023 release
@dancorain4860
@dancorain4860 3 года назад
Thanks for the video. I have one question if you can answer it. So instead of a button can we have a search box for the user to specify what value they want to search for ?
@briankgarland
@briankgarland 3 месяца назад
Can do it directly in PowerApps now. Works great, though still in preview as of July 2024.
@callfusion2012
@callfusion2012 3 года назад
Goode Video Dave! The error message in PowerApps, if you leave mandatory fields in Json, comes from fields with "null" values as a result from the SQL query, that's my experience. Another TIP, always define the variable for the filter as the last step in the flow, otherwise you often don't see the Resultsets table1, and you'll have to add that manually.
@LivingSmallLivingMobile1
@LivingSmallLivingMobile1 3 года назад
I don't have table 1. What do you mean define a variable for the filter as the last step? I have variables defined for all my paramos to the SP. still no Table1"
@pateltapesh505
@pateltapesh505 4 года назад
Hi This is Really helpful as i wanted to customize my flow on certain conditions, Thank so much. Hope you can make a video on Variable Specially in Flow, Also inculde that how use to variable to increase the number by 1 when each form id added in sharepoint as the Default ID in sharepoint is not reset to 1. And this i havent seen anywhere on youtube and in article, will really help Millions of people who are having query when the form is subimitted in SHarepoint and MsFroms. However Certain Articles does have the solution but are not upto the mark in real scenarios. Thanks Tapesh
@kiranamalakatta6007
@kiranamalakatta6007 4 года назад
Hi Dave, That's a great vedio. I am trying to do similar using Power BI. Can I pass parameters from Power Apps to Power BI direct query (stored procedure)?
@aamirghanchi9487
@aamirghanchi9487 3 года назад
Thank you for thsi wonderful video! For some reasons my Collection shows empty after running the flow. The Flow by itself is returning data when I test it on the Flow site separately. Not sure if it has anything to do with licensing.
@jenglish5848
@jenglish5848 Год назад
I have three parameters I'm sending to a stored procedure. I created the initVar... steps as outlines, and when I test the flow Power Automate lists 9 variables I have to fill out. If I delete those steps and use the Ask In Power Apps in the Execute Stored Procedure step, I have to fill out 5 required variables.
@renukabani2781
@renukabani2781 2 года назад
Hi, this video is very helpful , but I'm facing issue . I'm following every steps you mentioned.. I'm not passing any parameter from powerapps. When I'm collecting the response back in collection I'm getting boolean value as true. I can see the output in Automate but it's coming as boolean in collection.. I have been struggling with this issue since two days.. please let me know I'm going wrong. What approach I should follow.. I'm able to add the records to sharepoint list it works there but not in powerapps.. please help me
@rogerharrington5370
@rogerharrington5370 3 года назад
Well done. Easy to workout. Cheers
@ianthomas7703
@ianthomas7703 3 года назад
Great video Dave - thanks a million. One point i cannot get working is on 11:18 you select ResultsSet Table1 from the dynamic content list (right hand side). I am using the version online as of today and i do not get this, but just the ResultsSet without the Table1. Any ideas what i am doing wrong? I have now tried this 3 times with the same each time. Thanks for your help.
@synaptocrash277
@synaptocrash277 3 года назад
I struggled with this same problem for hours and eventually found a work-around by adding a Parse JSON as s step between Execute stored procedure and Response, but I suppose Initializing Variable as last step might also work.
@LivingSmallLivingMobile1
@LivingSmallLivingMobile1 3 года назад
@@synaptocrash277 I have the same problem. Worked fine on an earlier flow. What did you do in the parse json and response steps?
@oakae326
@oakae326 2 года назад
having same issue please help
@verasebastian475
@verasebastian475 2 года назад
@@synaptocrash277 Hi! Not sure if you can read this but can you share how you did the parse JSON step
@bdun24947
@bdun24947 3 года назад
Reading the database is fine but this does not answer how to write to a SQL table using a stored procedure. What's the point of a connector if we can't write data to our on-prem database?
@drdoom377
@drdoom377 4 года назад
Hello Dave, I'm getting the following error when trying to pass a string variable through trough the SQL stored Procedure variable. Microsoft SQL: Line 1: Length or precision specification 0 is invalid. Must declare the scalar variable "@Variable0". The string variable is simply "EMTALA" and the query works fine in SSMS. Its pretty similar to what you have in this video. Thanks for the help
@jameswhitehead6743
@jameswhitehead6743 2 года назад
What’s the editor you are using??
@rodmartin1817
@rodmartin1817 Год назад
Apparently, the outputs are different in the production version of this action compared to the preview. no such luck with the Table1 option. I put it in as the flyover expression, and its a no go. Anything that requires schema is always a mystery of syntax, and luck when you get the right combination of syntax between body, output, and schema. Its one of the most frustrating parts of power automate, and this completely breaks the development without needing to be a programmer vision of PA.
@HafizDaniyal
@HafizDaniyal 8 месяцев назад
13:25 ask in Power app not showing in my Power Automation Can Anyone help.
@TheUnder301club
@TheUnder301club 4 года назад
Hi Dave. Awesome guide! I was just wondering @11:17 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-BAGBzI4zdww.html you mentioned an old expression to get table 1. What Is that expression? I am trying to use the connector with azure db, and it does not seem to pick up the metadata from it automatically (as is often the case with azure db).
@TheUnder301club
@TheUnder301club 4 года назад
Got it working by using this expression: body{'Execute stored procedure (V2)'}['resultsets']['Table1']
@KDA16
@KDA16 5 лет назад
I am trying to do something similar using MS Flow Power Query. I have the Power Query and Response configured, and in Flow they collect the data as I expected, but I haven't been able to get them into PowerApps. Because I don't have any init variables, I just used ClearCollect(PowerQueryResults.myflow.Run()) but that didn't bring any results. Here is a subset of the results in the Flow Response Out (there are about 12000 records total)... {"statusCode":"200","schema":{"type":"array","items":{"type":"object","properties":{"Index":{"type":"integer"},"Product_Location_Id":{"type":"integer"},"Item No_":{"type":"string"},"Unit of Measure Code":{"type":"string"},"Item Category Code":{"type":"string"},"Product Group Code":{"type":"string"},"QTY":{"type":"integer"},"Product_Description":{"type":"string"},"Product_ProductLine_Id":{"type":"string"}}}},"body":{"resultType":"JsonValue","value":[{"Index":5,"Product_Location_Id":1735,"Item No_":"CAP-PD-160","Unit of Measure Code":"EA","Item Category Code":"04-04","Product Group Code":"PLASTIC","QTY":60.0,"Product_Description":"#16 PLASTIC PLUG","Product_ProductLine_Id":"187"},{"Index":9,"Product_Location_Id":1735,"Item No_":"CAP-PD-80","Unit of Measure Code":"EA","Item Category Code":"04-04","Product Group Code":"PLASTIC","QTY":50.0,"Product_Description":"#8 PLASTIC PLUG","Product_ProductLine_Id":"187"}]}} To me that looks like the proper output. Within PowerApps I do see the proper headers in the Collection, just no data. Do you know if method works with Power Query?
@oakae326
@oakae326 2 года назад
having same issue
@DanielWillen
@DanielWillen 5 лет назад
HTTP 200 Response is not intuitive at all. And you also have to know to generate the schema from the table. I just hate when Microsoft make things needlessly complicated. The "correct" flow should be Powerapps -> Run Stored Proc , Query , etc -> Respond To Powerapps. I don't see why they can't make it this way instead. Then in code simply ClearCollect(MyCollection,MyFlow.Run(Parameters)) and columns should be there. The "Run stored procedure" is already limited to return a single table at most, and cannot collect output vars from SQL.
@DavesTechTips
@DavesTechTips 5 лет назад
Hi Daniel. Thank you for the feedback and I agree, there is room for improvement on this and I am sure that PowerApps will be able to directly send queries to SQL soon. What I do enjoy about PowerApps is that there is usually a work around for current limitations by making use of other modules like Flow. (If you have access to the licenses for it)
@ryankeanho1041
@ryankeanho1041 5 лет назад
How can i pass 2 parameters into stored procedure?
@atomek1000
@atomek1000 4 года назад
yes
Далее
SQL Query from Power Apps using Flow (Tutorial)
31:45
SQL Stored Procedure Supported In Power Apps
12:38
Просмотров 10 тыс.
PowerApps SQL LookUps and Relationships
19:44
Просмотров 93 тыс.
Use the Power Automate v2 Trigger for Power Apps
19:09
Parse and Query JSON Data with SQL
8:24
Просмотров 4,5 тыс.
Automate SQL Report Generation with Power Automate
20:57
Type and Run a SQL Query inside PowerApps
8:17
Просмотров 50 тыс.