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’.

😉

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

  1. […] 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 Reply

Visitors

2,190,441 hits

Top Posts

Discover more from Rajeev Pentyala – Technical Blog on Power Platform, Azure and AI

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

Continue reading