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
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
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
276 | |
253 | |
87 | |
39 | |
34 |
User | Count |
---|---|
342 | |
248 | |
128 | |
73 | |
48 |