I am trying to fetch option set (Global) from power apps dynamically in power pages web page using custom code, is there a way to fetch option set dynamically which is not environment dependent.
I have tried this way to fetch option set dynamically, it's working but we have to use object type code of table in fetch, which will be different in each environment, so this approach is not environment free. Please suggest if this is possible in power page. Thanks
create a Power Automate flow that retrieves the global option set and passes the values back to your Power Pages page.
Create a Power Automate Flow:
Use the Dataverse connector in Power Automate to retrieve the global option set values.
In Power Automate, you can use the "List choices (OptionSet)" action to get the values of an option set.
Call Power Automate from Power Pages:
In your Power Pages, you can use JavaScript to trigger this Power Automate flow, retrieve the option set values, and then dynamically display them on the page.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.