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

How to bind key and value to dropdown from data source ?

Currently I am binding direct text values to drop downs using to dropdowns items attribute : Distinct('SQLTablename',ColumnName) This binds ColumnNames to both value and text. I need for eg. "ID" as value and "ColumnName" as text. Can anyone help me with this ?
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to bind key and value to dropdown from data source ?

Hi @SudhirSingare,

 

Do you want to display the values in dropdown control ?

 

Distinct('SQLTablename',ColumnName)  can only return the values of the specified column.

 

I made a test.

19.PNG

when you want "ID" as value and “ColumnName” as Text , you can set Items property of dropdown control to :

Filter('[dbo].[SQLTablename]',column1="1")

Under Value property of dropdown control ,you can choose the column name you want to display.

 

If you want to display 'ID' column values , you can set Items property of dropdown control to :

Filter('[dbo].[SQLTablename]',column1="1").ID

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: How to bind key and value to dropdown from data source ?

Hi @SudhirSingare,

 

Do you want to display the values in dropdown control ?

 

Distinct('SQLTablename',ColumnName)  can only return the values of the specified column.

 

I made a test.

19.PNG

when you want "ID" as value and “ColumnName” as Text , you can set Items property of dropdown control to :

Filter('[dbo].[SQLTablename]',column1="1")

Under Value property of dropdown control ,you can choose the column name you want to display.

 

If you want to display 'ID' column values , you can set Items property of dropdown control to :

Filter('[dbo].[SQLTablename]',column1="1").ID

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 173 members 5,051 guests
Please welcome our newest community members: