Introduction
Power Automate expressions are essential for building dynamic, flexible, and intelligent workflows. While the visual designer makes flow creation easy, real-world business scenarios often require expressions to handle conditions, calculations, formatting, and data transformations.
This article explains commonly used Power Automate expressions, why they are needed, and how to use them, with practical examples you can apply immediately in your flows.
What Are Power Automate Expressions?
Power Automate expressions are formulas written in Workflow Definition Language (WDL). They allow you to:
Manipulate and transform data
Perform calculations
Apply conditional logic
Format text and date values
Work with arrays and objects
Expressions are commonly used in:
Condition actions
Compose actions
Initialize / Set Variable actions
Dynamic content fields
Expressions are always written inside:
@{ }1. concat() – Combine Text Values
Purpose: Combines multiple text values into a single string.
Syntax
concat(value1, value2, value3)
Example
concat('Leave request from ', triggerBody()?['EmployeeName'])
Output
Leave request from John DoeCommon Use Cases
Email subject lines
File and folder names
Dynamic notification messages
2. equals() – Compare Two Values
Purpose
Checks whether two values are equal.
Syntax
equals(value1, value2)
Example
equals(triggerBody()?['Status'], 'Approved')
Output
trueif values matchfalseotherwise
Common Use Cases
Condition checks
Approval and decision flows
3. if() – Conditional Logic
Purpose
Returns one value if the condition is true and another if it is false.
Syntax
if(condition, valueIfTrue, valueIfFalse)
Example
if(equals(triggerBody()?['Priority'], 'High'), 'Urgent', 'Normal')
Output
Urgent
or
Normal
Common Use Cases
Conditional email content
Status labels
Priority-based logic
4. empty() – Check for Blank or Null Values
Purpose
Checks whether a value is null or empty.
Syntax
empty(value)
Example
empty(triggerBody()?['Comments'])
Output
trueif empty or nullfalseif value exists
Best Practice
Always use empty() instead of direct null comparisons to avoid runtime errors.
5. coalesce() – Handle Null Values Safely
Purpose
Returns the first non-null value from a list.
Syntax
coalesce(value1, value2, value3)
Example
coalesce(triggerBody()?['ManagerEmail'], '[email protected]')
Output

Join the conversation! Your thoughts help the community grow.