Free – no sign-up

Power Automate Expression Generator

Build valid Power Automate expressions for text, dates, numbers, logic and collections – and test them directly with sample values in the browser.

  1. Step 1

    Pick a function

    Choose a category and function – e.g. concat, formatDateTime or if.

  2. Step 2

    Fill in arguments

    Enter sample values. The expression is generated live in correct WDL syntax.

  3. Step 3

    Test & copy

    The result is computed instantly. Copy the expression and paste it into Power Automate.

concat(text1, text2, …)

Joins several texts into one string.

Returns: Text

Arguments

text1
text2

Generated expression

Expression
concat('Hallo ', 'Welt')
Result: Hallo Welt

Practical templates

Ready-made expressions for common tasks – copy and adjust.

File name with timestamp

Appends the current date to a file name, e.g. for unique export files.

WDL
concat('Export_', utcNow('yyyy-MM-dd'), '.csv')

Extract email domain

Reads the part after the @ from an email address.

WDL
substring(triggerBody()?['email'], add(indexOf(triggerBody()?['email'], '@'), 1), sub(length(triggerBody()?['email']), add(indexOf(triggerBody()?['email'], '@'), 1)))

Default value when empty

Uses a default value when a field is empty or missing.

WDL
if(empty(triggerBody()?['name']), 'Unbekannt', triggerBody()?['name'])

Map status to label

Returns a readable text depending on a status value.

WDL
if(equals(triggerBody()?['status'], 'won'), 'Gewonnen', 'Offen')

Net amount from gross (19%)

Calculates the net amount from a gross amount at 19% VAT.

WDL
div(mul(float(triggerBody()?['brutto']), 100), 119)

Output array as list

Joins the items of an array into a comma-separated text.

WDL
join(triggerBody()?['tags'], ', ')

Clean phone number

Removes spaces and dashes from a phone number.

WDL
replace(replace(triggerBody()?['phone'], ' ', ''), '-', '')

Due date in 14 days

Calculates a date 14 days in the future in dd.MM.yyyy format.

WDL
addDays(utcNow(), 14, 'dd.MM.yyyy')

What does the Power Automate Expression Generator do?

The tool builds valid expressions in the Workflow Definition Language (WDL) used by Power Automate and Azure Logic Apps. You pick a function such as concat, substring, formatDateTime, if or coalesce, fill in the arguments and get the fully formatted expression – including correct single quotes and escaping. For most functions the result is also computed directly in the browser using your sample values.

When should you use it?

Whenever you need an expression in a Power Automate flow and want to look up the exact syntax or behaviour of a function – for example to format a date, set a default value for empty fields, concatenate text or build a condition. Instead of searching the docs and trial-and-error inside the flow, you test the logic up front with concrete values.

Which mistakes does it prevent?

Misplaced quotes, forgotten escaping of apostrophes, confusing 0- and 1-based indexes in substring, and functions that return something other than expected. The live test shows you the actual result before you use the expression in the flow – saving test runs and failed executions.

Technical limitations

Values that only exist at runtime (utcNow, guid, rand) or reference flow data (triggerBody, variables, outputs) cannot be computed in the browser – here the tool gives you the correct syntax but no sample value. If you mark an argument as “expression/reference”, it is inserted verbatim and not evaluated. Everything runs client-side only; no code is executed and nothing is sent to a server.

Official documentation: learn.microsoft.com/azure/logic-apps/workflow-definition-language-functions-reference

More automation

More than single expressions – automate processes end to end

Power Automate is one building block. If you want to reliably automate recurring workflows, data flows and tracking, Data Flakes supports you from concept to implementation.

FAQ

What is an expression in Power Automate?

An expression is a formula in the Workflow Definition Language, e.g. concat('Hello ', 'World'). Power Automate and Azure Logic Apps use them to compute, format or check values.

Does the tool really compute my values?

Yes – for most functions the result is computed directly in the browser (a safe TypeScript re-implementation, no eval). Functions with runtime values such as utcNow or guid only return the correct syntax.

Why are single quotes doubled?

In WDL strings are wrapped in single quotes. An apostrophe inside the text is escaped by doubling it, e.g. 'it''s'. The tool does this automatically.

Can I reference dynamic content like triggerBody()?

Yes. Enable “expression/reference” for an argument and the value is inserted verbatim – without quotes. The browser cannot compute such expressions, because the value only exists inside the flow.

Are my inputs stored or sent anywhere?

No. The tool runs entirely in your browser. No inputs are stored, sent to a server or passed to an AI model.

More free tools

View all free tools

These free tracking tools are built by Data Flakes – specialists for conversion tracking, GA4, Google Tag Manager and automation. For custom implementations, audits and consulting we help you directly.