cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
was
Level: Powered On

Dropdown values from storedprocedure in sql server

Hey, 

I have created flow who connects to sql server and execute storedprocedure .

Now i wan't that the data of a dropdown control in powerapps will be the data that this flow is returning, is that possible?

I have a field 'Department' and when it changes the flow excuting the storedprocedure and i want to save the returning values in drop down.

2 REPLIES 2
Community Support Team
Community Support Team

Re: Dropdown values from storedprocedure in sql server

HI @was,

 

Could you please share a bit more about the formula within the Items property of the Drop down control?

Could you please show a bit more about the storedprocedure that you mentioned?

Further, do you want to save the returning data into the Department Drop down control?

 

More details about starting a flow from an app, please check the following article:

Start a flow from an app

 

More details about returning an Array from flow to PowerApps, please check the following blog:

https://powerapps.microsoft.com/en-us/blog/return-an-array-from-flow-to-powerapps-response-method/

 

https://powerapps.microsoft.com/en-us/blog/return-an-array-from-a-sql-stored-procedure-to-powerapps-...

 

Please check and see if the above articles would help in your scenario.

 

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Dropdown values from storedprocedure in sql server

Assuming your "departments" have matches in your flow, then on submission of your "department" field, call your storedProc with the value of the field...pushing it into a collection

 

ClearCollect(queryResults,getSqlquery.Run(myDepartment.Text))

 

and then for your dropdown, make the "items" attribute  equal the Collection and field name, eg queryResults.myDisplayedField

 

 

 

 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,070)