cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Populate gallery with allowed values of a column

Hi there! 

 

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. 

 

MaxE

1 REPLY 1
v-yamao-msft
Community Support
Community Support

Hi MaxE,

 

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

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,537)