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