Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
Contributors/Wals.pro team/Power automate expression syntax
Workflow building

Power automate expression syntax

Write, validate, and debug Microsoft Power Automate expressions. Use for Workflow Definition Language expressions in cloud flows, dynamic content, runAfter conditions, null-safe property access, variables, trigger/action outputs, date/string/array functions, and for deciding when Power Fx applies only to desktop-flow or other Power Platform formula surfaces.

ByWals.pro teamPower Platform consultancy @ Wals.pro
name:
power-automate-expression-syntax
description:
Write, validate, and debug Microsoft Power Automate expressions. Use for Workflow Definition Language expressions in cloud flows, dynamic content, runAfter conditions, null-safe property access, variables, trigger/action outputs, date/string/array functions, and for deciding when Power Fx applies only to desktop-flow or other Power Platform formula surfaces.

Power Automate Expression Syntax

Power Automate cloud flows use Workflow Definition Language expressions. Power Fx is a separate formula language and is not the default for cloud-flow JSON.

Workflow

  1. Identify the expression host:
    • Cloud-flow action/condition/JSON: WDL expressions.
    • Desktop flow formula mode: Power Fx.
  2. For cloud-flow expressions, read references/cloud-flow-expressions.md.
  3. For desktop-flow Power Fx, read references/power-fx-desktop-flows.md.
  4. Validate against live run inputs where possible; expression errors are often data-shape errors rather than syntax-only errors.

Cloud-Flow Guardrails

  • Use @{...} inside string interpolation and @... when the whole value is an expression.
  • Prefer null-safe access with ?[] for optional action outputs.
  • Use exact action names in outputs('Action_Name'), body('Action_Name'), and actions('Action_Name').
  • Avoid copying expressions from rendered docs without checking quotes and invisible characters.
  • Confirm a function exists in power-automate-reference (the complete WDL namespace) before using it — the namespace is closed; do not invent functions.

More in this playbook

Delivery Itay GuttmanItay Guttman + 1CEO @ engini.ai

Safe to turn on

Use this skill when an agent or person is about to create, change or enable an automation inside someone else's account or a shared environment: "create this workflow", "build it in the customer's account", "turn it on", "go live", "deploy this automation". Produces a proposal the human approves, an automation created in the off state, and a short list of what only the human can finish.

Workflow buildingMIT Romuald CzłonkowskiRomuald CzłonkowskiFounder @ AiAdvisors

n8n agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.

Workflow buildingMIT Romuald CzłonkowskiRomuald CzłonkowskiFounder @ AiAdvisors

n8n agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain, Text Classifier, or Information Extractor — and whenever the user mentions AI agents, LLM with tools, tool calling, $fromAI, system prompts, agent memory, sessionId, structured/JSON output, output parser, RAG, vector store, a chat assistant/bot, or human-in-the-loop review. Covers Agent-vs-chain-vs-classifier choice, the model/memory/tools/outputParser slots, tool names/descriptions as prompt, structured output with autoFix, memory, RAG, human review, and chat topologies.

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.