How to get workflow location?

David 0 Reputation points
2025-02-27T20:37:20.6633333+00:00

My understanding of https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#workflow is that in runtime I can use workflow().location to get the location,

"By default, a workflow object has these properties: name, type, id, location, run, and tags."

Unfortunately attempting this results in the error 'The template language expression 'workflow().location' cannot be evaluated because property 'location' doesn't exist, available properties are 'id, name, type, run'. Please see https://aka.ms/logicexpressions for usage details.'.

Is there a simple way to get the location of the workflow in runtime? This is for logic apps standard and as workaround I'm using appsetting('REGION_NAME') which apparently is being set automatically by Azure

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,369 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.