cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SaWu
Level 8

OptionSet Choices or AllowedValues?

Please be so kind as to read the full post before responding.
Thank you for your consideration.

I noticed with the new PowerApps release 3.19013.14, that there seems to be some syntax changes (or inconsistencies?) with regards to OptionSets.
These following screenshots show the auto-generated properties for a single-select OptionSet field of a D365 entity, selecting Common Data Source App, choosing OptionSet field in EditForm1.Fields property, letting PowerApps do the rest.
This doesn't seem to work and the Items property seems to be nonsense.
image.pngimage.pngimage.png
Just setting the Items property to

Choices('PowerFair-Leads'.kk_academictitle)


I distinctly remeber that just some time ago, I could not use Choices for OptionSet, but only for MultiSelect-OptionSet and LookUp fields, but had to use something like

DataSourceInfo('MesseApp-Leads', DataSourceInfo.AllowedValues, "_kk_academictitle_label")


My questions:

  1. Is the replacement of _.*_label related to the new default-on Preview Setting "Relational data, option sets, and other new feature for CDS"?
  2. Is Choices now finally the "universal answer" to Items in PullDown/ComboBox controls? Can I forget about DataSourceInfo/AllowedValue?
  3. The autogenerated form for the OptionSet field not working is a bug, right?
1 REPLY 1
SaWu
Level 8

Re: OptionSet Choices or AllowedValues?

On a second attempt, it seems like the

Choices(_)

resulted out of pure randomness.
My other two questions still remain.

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 (Last 30 Days)
Users online (5,678)