web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get environment name (...
Power Automate
Unanswered

Get environment name (not UID) for use in flow

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am trying to get the Enviroment name and the Flow name dynamically by the flow.

 

I am using the workflow() function, which gives you 

{"id":"/workflows/f6b5b555b0bf4099bc86deb8be470ec2","name":"f54a58aa-c828-41c6-9db7-01c43a9c81ef","type":"Microsoft.Logic/workflows","location":"westeurope","tags":{"flowDisplayName":"Test built in values","environmentName":"9c88dc9d-9d73-45d6-81e3-4053e87d707b","logicAppName":"f54a58aa-c828-41c6-9db7-01c43a9c81ef","environmentFlowSuspensionReason":"9c88dc9d:2D9d73:2D45d6:2D81e3:2D4053e87d707b-None"},"run":{"id":"/workflows/f6b5b555b0bf4099bc86deb8be470ec2/runs/08586098143480436361362185530CU169","name":"08586098143480436361362185530CU169","type":"Microsoft.Logic/workflows/runs"}}

 

utilizing that I can get the flow name thus

workflow()?['tags']['flowDisplayName']
 
But there is no similar field for environment name shown, how do I get the environment name as the correct name rather than UID?  Or is there another way to dynamically in a flow get the flow and environment names in plain text?
 
Thank you
 
Mark
 
Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Please have a look at this post by @DeepakS

     

    https://powerusers.microsoft.com/t5/Building-Flows/Get-name-of-environment-that-flow-is-running-in/td-p/460039

     

    Also List my environments display all of you environments which you can access.

     

    image.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @abm 

     

    Thanks, but that was not my answer, I do not wish to do a compare of UID's and confirm my environment, what I need to get is the actual real name of the environment.

     

    Many thnaks

     

    Mark 

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Thanks for your reply. Believe these are the only options to get the names.

     

    Thanks

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard