I am trying to set up a gallery that displays all allowed values of a SharePoint choice column.
I tried it with
text = DataSourceInfo(YourDataSource, DataSourceInfo.AllowedValues, "FieldName")
However, it did not work as it returns a table and not text.
I guess I have to first set the gallery items (?) and then get the text of the item in the list. I appreciate any help.
Please check this documentation about DataSourceInfo at here:https://powerapps.microsoft.com/en-us/tutorials/function-datasourceinfo/
The description about DataSourceInfo.AllowedValues is “What types of permissions can users be granted for this data source? If not set by the data source, returns blank”.
So I assume that if you haven’t granted the user the types of permission for the data source, it will return blank.
Best regards, Mabel Mao
Learn how to create your own user groups today!
Check out the new Power Platform Community Connections gallery!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.