Hi,
I'm working on a piece of functionality on an internal dynamics 365 admin tool. Currently I'm in the process of adding a "Edit Form" function to this. The function allows users to select their solution and then open a new window to edit the form in the new power platform form editor.
The URL that needs to be constructed for this requires the CDS/Power Platform "environment id". So my question is, how do I go about retrieving the environment id that relates to my current dynamics 365 instance? Or alternatively, how can I retrieve all environment id's (and their names) within the tenancy?
Is there some kind of API I can hit?
PS, I cannot make use of power automate (flow) as I need to be able to use this tool across multiple tenancies.
Thanks