Please be so kind as to read my full post before responding.
Thank you for your consideration.
In my PowerApps retrieving MaxLength (for Text fields) via DataSourceInfo from Dynamics/CDS does not seem to be working anymore.
I only get empty results.
Last checked with
Session ID: cdc39558-0a90-4b1d-9849-3de65c7eef75
Instance version 220.127.116.1126
Here two screenshots of a custom entity
Even with something like a standard User Entity I get nothing
How do I get MaxLength back?
Solved! Go to Solution.
What is the state of the feature switch "Improve data source experience and Common Data Service views" for your app?
What happens if you change it? In my experience it changes some MaxLength behavior.
Thanks, you were right that the "Improve Data Source experience and Commond Data Service Views" feature was the missing part.
With a fresh App this is on be default and it works.
In my orignal older App it isn't turned on and it doesn't work
Just out of curiosity I disabled the feature in my fresh App, after removing data sources, and added my data sources again.
Without this feature, in a fresh App, DataSourceInfo.MaxLength does not work.
Moreover, toggling this feature requires removal and re-adding all data sources, potentially breaking my App elsewhere in the meantime... not sure I'll go through that experience with hundreds of controls missing their data sources and the App Checker going haywire...
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.