web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Dropdown values from s...
Power Apps
Unanswered

Dropdown values from storedprocedure in sql server

(0) ShareShare
ReportReport
Posted on by

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.

powerapps.PNG
Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    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-split-method/

     

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

     

     

    Best regards,

    Kris

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard