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).

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).

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 374 members 4,672 guests
Please welcome our newest community members: