How to get Environment id and flow id in Power Automate flow

Hello everyone and welcome to my blog. In today’s blog we will discuss on how to get the environment id in which the Power Automate flow is executing and also the GUID of the flow

Through my blog I share interesting tips and discuss on latest releases of Microsoft.NET technologies, Dynamics 365 and Power Platform, SharePoint and Client scripting libraries. Please subscribe to my blog to stay updated.

Let’s get started. Quite unknown to many, when a Power Automate flow executes, you can get all the runtime details using the workflow() expression.

The workflow() expression has multiple properties but today we are going to discuss only about the tags property. For illustration purposes I have set the value of tags property inside a variable of type object in Power Automate.

Below illustration when the flow is executed. As you can observe in the below screenshot, we have the environmentName which is basically the environment id.

Use the value for logicAppName to get the ID of the Power automate flow.

Apart from that we have other properties like Flow Display name and the date and time when the flow was created and last modified.

Hope this helped. For similar interesting topics on Microsoft.NET and Power platform, you can subscribe to my blog.

Debajit Dutta
Business Solutions MVP


Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe to get the latest posts sent to your email.

Discover more from Debajit's Power Apps & Dynamics 365 Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading