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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (12,050)