Notifications
Announcements
Use case : Open flow URL from dynamics crm 365 context.
Issue: How to get environment id of the flow url (Eg. https://us.flow.microsoft.com/manage/environments/2f833504-48e4-405a-bf8e-b5536b9e8527/flows) from dynamics 365.
Thank You
Hi @sandeepnmenon,
You could use WDL function to get the environment id contained in flow url.
Like:
Expression:
last(take(split(outputs('Compose'),'/'),6))
Best Regards,
Barry
Hi @v-bacao-msft
I need the environment Id programmatically in dynamics crm (Eg. solutiuon, custom control, plugin etc.), not in the flow edit experience.
Hi,
Did you find out how to do this by any chance?
Hello @Anonymous ,
I found a solution to this but I don't think it is supported.
You can get the Environment Id in Microsoft Dynamics using the following code
localStorage.getItem("flowEnvironmentId")
Best regards,
Betim Beja.
This returns a null value for me. In which context do you execute this function?
I tried to simply run it from the console by the way.
Hello,
after some more digging, I figured out that this value gets written to the local storage after you click the flow button in the ribbon
yes, the fastest way to test this is to execute the script in the console. You could peek the local storage using the Application tab in the DevTools too.
Thanks for the help anyway. Back to the drawing board I guess.
I really appreciate your help anyway.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional