{tocify} $title={Table of Contents}
As can be seen above, have initialized a variable named laname and used following workflow function in Expression to get logic app name against Value.
Introduction
In many scenarios we need to get the details of the workflow which is executing, one such requirement is in context to logging.
Apart from all the details we are logging, having a name, runid etc of logic app name is also helpful.
How to Get Logic App Name in Logic App
There is inbuilt function available - workflow() which can be used to get the workflow name and other properties related to workflow.
To demonstrate, I have made use of variable to which value of logic app name is assigned.
As can be seen above, have initialized a variable named laname and used following workflow function in Expression to get logic app name against Value.
workflow().name
If you see below, the name of logic app is LiquidMapChecker, so this is what we should get as value in the variable.
Testing
To test this I simply triggered the Logic app, and checked the result in the Run history
That's it... value of workflow name is assigned to variable.
What else Workflow() function in Logic App provides
Workflow function returns all the details about the workflow itself during run time.
Workflow function gives access to following properties: name, type, id, location, run, and tags.
To get value of any of the property, simply use following expression
workflow().<property>
Learn More about Logic App
- Get Logic App Name in Logic App
- Difference between Logic App Consumption and Logic App Standard
- Getting Started with Logic App Standard | Overview of Logic App Standard | Basics of Logic App Standard
- How to find count of Logic App executions using Azure Portal
- Azure Functions vs Azure Logic App | Difference between Azure Functions and Azure Logic App
- Getting started with Logic App : Liquid Map | Using Liquid template in Logic app
- How to get actual error message of Scope in Logic App | Exception Handling in Logic app
- Interview questions and answers on Logic Apps | Interview questions for azure logic app developers
- How to execute Stored Procedure in Logic App | How to connect to SQL in Logic App
- How to get current date in logic app | How to format date time in Logic App
- BizTalk Developer getting started with Logic App
- Getting Started with Logic Apps - Fundamentals
- Getting Started with Logic Apps - Enterprise Application Integration
- Getting Started with Logic Apps - AS2
- Getting Started with Logic Apps - EDI X12 Fundamentals
- Getting Started with Logic Apps - XML to EDI X12
- Getting Started with Logic Apps - EDI X12 to XML
- Getting Started with Logic Apps - What happened to the Request?
- Inserting Multiple Records In On Prem SQL Using Logic App
- Inserting data in On Premises SQL Database using Logic Apps
- Installing and Configuring On Premises Data Gateway - By adding user to Active Directory
- XML Batching(Aggregation) in Logic App
- Batching(Aggregating) messages in Logic App
- Debatching(Splitting) JSON Message in Logic Apps - ForEach and SplitOn
- Debatching(Splitting) XML Message in Logic Apps - ForEach and SplitOn
- Securing Logic App with Azure Active Directory authentication
- Removing ns0: prefix from xml output from BizTalk/Logic app XSLT map
- Using Managed Identity in Logic Apps for Calling Active Directory Secured Function App
- Logic Apps : Fetching ISA and GS Segment Values From Interchange Envelope and Mapping
- Logic Apps : For Each Inside a For Each - Fetching values from field in an array inside an array