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

Drop Down List values from other database column - Invalid Arguments?

I continue to get an error when I try to assign values from another datasource into a drop down list.

The app is configured from dbo.Raab Sample Table, i also connected dbo.entity_property.  

The idea is the list options are from another datasource and will write to the Raab Sample database when selected.

 

2018-05-03 12_06_06-Database Test Example 2 - Saved (Unpublished) - PowerApps.png2018-05-03 12_08_49-Database Test Example 2 - Saved (Unpublished) - PowerApps.pngInvalid Name?

 

The "Choices" function refrences this database and column I'm looking to pull data from to populate the drop down, but i recieve an error claiming Invalid Arguments.   I'm unsure how the invalid name error is generated since the column is selected from the database in the syntax.  can you have outside datasources populate this list?

Please advise

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
PowerApps Staff ShantanuP
PowerApps Staff

Re: Drop Down List values from other database column - Invalid Arguments?

The choices function works only with special type of fields. For example, choice type fields in sharepoint. Are you just trying to list all the values from that field in another table? If that's the case then you can just bind Dropbpox.Items property to '[dbo].[ENTITY_PROPERTY]'.ASSIGNED_TO_DISPLAY_NAME. If you want to just list unique values in that field then you need to use function Distinct, For example, Distinct( '[dbo].[ENTITY_PROPERTY]', ASSIGNED_TO_DISPLAY_NAME).

View solution in original post

1 REPLY 1
Highlighted
PowerApps Staff ShantanuP
PowerApps Staff

Re: Drop Down List values from other database column - Invalid Arguments?

The choices function works only with special type of fields. For example, choice type fields in sharepoint. Are you just trying to list all the values from that field in another table? If that's the case then you can just bind Dropbpox.Items property to '[dbo].[ENTITY_PROPERTY]'.ASSIGNED_TO_DISPLAY_NAME. If you want to just list unique values in that field then you need to use function Distinct, For example, Distinct( '[dbo].[ENTITY_PROPERTY]', ASSIGNED_TO_DISPLAY_NAME).

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: 396 members 5,999 guests
Please welcome our newest community members: