Lets learn how to fetch the current ‘Environment ID’ in Power Automate flows.

What is Environment Id:

  • In Power Platform, Environment is a space to store, manage, and share your organization’s business data, apps, chatbots, and flows.
  • Every Environment will be associated with an unique identifier.

In few scenarios, we would need ‘Environment ID’ to perform actions. Lets see how to fetch the current Environment ID in Power Automate Flow.

Power Automate Flow to fetch current Environment ID:

  • Create a ‘Manually trigger flow’ with a Compose action.
  • Write the expression workflow()[‘tags’][‘environmentName’]
  • Save and Test the flow.
  • You will find the ‘Environment ID’ in the Compose action ‘Outputs’.

😉

Advertisements
Advertisements

3 responses to “[Quick Tip] Power Automate flow | Get current Environment ID”

  1. Canvas App | Get Environment ID without the need of cloud flow | Rajeev Pentyala - Microsoft Power Platform Avatar

    […] one of my previous articles I explained the steps to fetch the Environment ID in Power Automate […]

  2. PRASANNA RAO Avatar
    PRASANNA RAO

    Hi Rajeev have tried the workflow()[‘tags’][‘environmentName’] however PA Cloud throws up a invalid expression.
    Does this require Admin role?

    Prasanna

  3. Victor Ivanidze Avatar
    Victor Ivanidze

    Use proper quote marks: workflow()[‘tags’][‘environmentName’]

Leave a comment