I am building a page that will display a list of records from a Dataverse table. The tabe includes a 'Status' Choice column.
I would like to display the availilable status with radio buttons, so portal user can click a status to just see the records that match the selected status.
The records will be retrieved using fetchXML/liquid, instead of an Entity List, so I can construct the fetchXML based on the selected status, and output the result into a <table> so that I can format it anyway I like.
However, I don't seem to be able to find a way to extract the available options from the 'Status' column. I'm trying to get the available options from the column or from the referenced Choice, so that even if the the available options are updated in future I won't need to update code.
Some people suggested using fetchXML to query the 'stringmap' table which requires adding table permission for portal users to access. But as it's a system table and Microsoft specifically hides it from the 'Tables' page in make.powerapps.com, I am a bit reluctant to fool around with it.
I have investigated the Portal Web API which doesn't have a method to get Option Sets.
The Dataverse Web API does provide a method to do so, but I can't find a way to call it from the Portal.
Anyone know the proper way to achieve my requirement? If not, then I will have to hard code the option values and labels into a Content Snippet.