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