Power automate reference
Authoritative, embedded reference for the Power Automate cloud-flow language (Workflow Definition Language / Logic Apps). Use to confirm whether a function, trigger, or action exists and its exact name or JSON "type", to check function signatures, the workflow-definition schema, runAfter semantics, or operators — before writing or validating any cloud-flow expression or JSON. Stops invented functions and Power Fx bleeding into cloud flows.
ByWals.pro teamPower Platform consultancy @ Wals.pro- name:
- power-automate-reference
- description:
- Authoritative, embedded reference for the Power Automate cloud-flow language (Workflow Definition Language / Logic Apps). Use to confirm whether a function, trigger, or action exists and its exact name or JSON "type", to check function signatures, the workflow-definition schema, runAfter semantics, or operators — before writing or validating any cloud-flow expression or JSON. Stops invented functions and Power Fx bleeding into cloud flows.
Power Automate Reference
Look here before writing or reviewing a cloud-flow expression or action JSON. This skill ships the canonical Microsoft references inline so you verify names against the real namespace instead of recalling them from training data (which goes stale as Microsoft changes the platform).
Hard rules
- The function namespace is closed. If a name is not in
references/expression-functions.md, it does not exist — do not invent or guess a function. Pick a real one or compose existing ones. - Cloud flows use Workflow Definition Language (WDL) only. Never use Power Fx
functions inside cloud-flow JSON. Power Fx is for desktop flows and other Power
Platform formula surfaces (see
power-automate-expression-syntax). - Secrets in a workflow definition's
parametersuse thesecurestring/secureobjecttypes (aGETwill not return them); real secrets belong in Azure Key Vault, never as literals in the definition. - Use the
?null-safe operator for optional action/trigger outputs. - Prefer real control actions (
If/Switch/Scope/Foreach/Until) over stackingComposeactions to fake logic.
Procedure
- Classify what you need:
- a function (name / category / does it exist) →
references/expression-functions.md - a trigger or action (
typevalue, runAfter) →references/triggers-and-actions.md - the definition shape, parameter types, or operators →
references/workflow-definition-language-schema.md
- a function (name / category / does it exist) →
- Read the matching reference file and use the exact names/types it lists.
- Only open the canonical Microsoft Learn link (in each file) when you need the newest behavior or an edge detail the reference does not cover.
Related skills
power-automate-expression-syntax— how to compose and validate expressions (this skill is the lookup of what exists).power-automate-action-configuration— connector/action payload shapes.power-automate-docs— router to the wider Microsoft Learn documentation.power-automate-workflow-patterns— flow architecture (and avoiding Compose sprawl).
Open this reference as its own page
Workflow Definition Language — complete function namespace
Canonical source (open for signatures, arguments, and examples): https://learn.microsoft.com/en-us/azure/logic-apps/expression-functions-reference
This is the full namespace. If a function name is not in this list, it does not exist in cloud flows — do not invent one. These are Workflow Definition Language functions, not Power Fx. Wrap string literals in single quotes (
'text'), not double quotes.
String
chunk, concat, endsWith, formatNumber, guid, indexOf, isFloat,
isInt, lastIndexOf, length, nthIndexOf, replace, slice, split,
startsWith, substring, toLower, toUpper, trim
Collection
chunk, contains, empty, first, intersection, item, join, last,
length, reverse, skip, sort, take, union
Logical comparison
and, equals, greater, greaterOrEquals, if, isFloat, isInt, less,
lessOrEquals, not, or
Conversion
array, base64, base64ToBinary, base64ToString, binary, bool,
createArray, dataUri, dataUriToBinary, dataUriToString, decimal,
decodeBase64 (deprecated — use base64ToString), decodeDataUri,
decodeUriComponent, encodeUriComponent, float, int, json, string,
uriComponent, uriComponentToBinary, uriComponentToString, xml
Math
add, div, max, min, mod, mul, rand, range, sub
Date and time
addDays, addHours, addMinutes, addSeconds, addToTime, convertFromUtc,
convertTimeZone, convertToUtc, dateDifference, dayOfMonth, dayOfWeek,
dayOfYear, formatDateTime, getFutureTime, getPastTime, parseDateTime,
startOfDay, startOfHour, startOfMonth, subtractFromTime, ticks,
utcNow
Workflow / referencing (runtime values)
action, actions, body, formDataMultiValues, formDataValue, item,
items, iterationIndexes, listCallbackUrl, multipartBody, outputs,
parameters, result, trigger, triggerBody, triggerFormDataValue,
triggerFormDataMultiValues, triggerMultipartBody, triggerOutputs,
variables, workflow
URI parsing
uriHost, uriPath, uriPathAndQuery, uriPort, uriQuery, uriScheme
Manipulation (JSON & XML)
addProperty, coalesce, removeProperty, setProperty, xpath
Quick null-safe patterns
@body('Get_item')?['Title']
@coalesce(trigger().outputs?.body?['name'], 'fallback')
@first(body('List_rows')?['value'])?['id']
Open this reference as its own page
Triggers & actions — JSON type reference
Canonical source (open for full inputs/outputs per type): https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-actions-triggers
Every trigger and action object carries a type (the values below), plus
inputs and (for actions) runAfter. Use the exact type string.
Triggers
type |
Purpose |
|---|---|
Recurrence |
Fire on a schedule (uses a recurrence object). |
Request |
Callable HTTP endpoint — "manual" / when-an-HTTP-request-is-received. |
Http |
Poll an HTTP/HTTPS endpoint on a schedule. |
HttpWebhook |
Subscribe/unsubscribe to an external service for push callbacks. |
ApiConnection |
Poll a Microsoft-managed connector endpoint. |
ApiConnectionWebhook |
Push notifications from a managed connector via callback. |
Flows invoked from a Power Apps canvas app use the Power Apps (V2) trigger, not a bare
Request/Httptrigger — otherwise the app can't bind to it. Pick the connector-specific trigger the host expects.
Control actions
type |
Purpose |
|---|---|
If |
Conditional branch (true/false). |
Switch |
Route to a case by expression value. |
Scope |
Group actions; evaluate their combined status (error handling). |
Foreach |
Loop over array items (parallel by default). |
Until |
Loop until a condition is true. |
Terminate |
Stop the run with a status. |
InitializeVariable / SetVariable / IncrementVariable / AppendToArrayVariable |
Variable lifecycle. |
Data / built-in actions
type |
Purpose |
|---|---|
Compose |
Produce a single output from inputs. Don't stack these to fake logic. |
ParseJson |
Typed tokens from a JSON payload. |
Select |
Map/reshape array items. |
Query |
Filter array items. |
Join |
Join an array into a delimited string. |
Table |
Build a CSV/HTML table from an array. |
Http |
Send an HTTP/HTTPS request. |
Response |
Reply to an incoming Request trigger. |
Workflow |
Call a child flow / nested workflow. |
Function |
Call an Azure Function. |
JavaScriptCode |
Run an inline JavaScript snippet. |
Wait |
Pause for a duration or until a time. |
Managed-API actions
type |
Purpose |
|---|---|
ApiConnection |
Call a managed connector operation (Office 365, SharePoint, Dataverse, …). |
ApiConnectionWebhook |
Managed connector with webhook callback. |
runAfter — sequencing & error handling
runAfter maps each prerequisite action name to an array of accepted statuses.
Accepted statuses: Succeeded, Failed, Skipped, TimedOut.
"Parse_JSON": {
"type": "ParseJson",
"inputs": { },
"runAfter": { "HTTP_Action": [ "Succeeded" ] }
}
"runAfter": {}— the action runs first, immediately after the trigger.- Multiple keys — all listed actions must reach an accepted status.
- Run-after on
[ "Failed", "TimedOut" ]is how you build catch/error branches (often combined with aScope).
Open this reference as its own page
Workflow Definition Language — schema shape
Canonical source: https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-schema
Top-level definition
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": { },
"triggers": { },
"actions": { },
"outputs": { },
"staticResults": { }
}
| Key | Required | Notes / limit |
|---|---|---|
$schema |
When externally referenced | WDL schema version URL. |
contentVersion |
No | Defaults to "1.0.0.0"; set it to identify the definition. |
parameters |
No | Runtime parameter definitions. Max 50. |
triggers |
No | One or more triggers (multiple only via WDL, not the designer). Max 10. |
actions |
No | The actions to run after the trigger. Max 250. |
outputs |
No | Values returned from a run. Max 10. (To reply to a request, use the Response action, not outputs.) |
staticResults |
No | Mock outputs for testing, referenced by runtimeConfiguration.staticResult.name. |
Trigger / action object shape
"<name>": {
"type": "<type>",
"inputs": { },
"runAfter": { "<previous-action>": [ "Succeeded" ] },
"runtimeConfiguration": { }
}
Recurrence triggers add a recurrence object. See triggers-and-actions.md for
type values and runAfter semantics.
Parameters & secrets
"parameters": {
"<name>": {
"type": "<int|float|string|bool|array|object|securestring|secureobject>",
"defaultValue": <value>,
"allowedValues": [ ],
"metadata": { "description": "" }
}
}
Use securestring / secureobject for passwords, keys, and secrets — a GET
does not return these types. Store secret values in Azure Key Vault and
reference them; never hardcode a secret literal into the definition.
Operators
| Operator | Use |
|---|---|
' |
Wrap string literals: length('Hello') (single quotes, never double). |
[] |
Index/property access: myArray[1], obj['prop']. |
. |
Property access: parameters('customer').name. |
? |
Null-safe access: triggerBody()?['ContentData'] returns null instead of failing when the property/parent is missing. |
Expressions vs string interpolation
- Whole value is an expression:
"@parameters('name')". - Inside a string:
"Hello @{parameters('name')}". - Escape a literal leading
@by doubling it:@@. - An interpolated expression always resolves to a string; a whole-value expression keeps the underlying type (number stays a number).
More in this playbook
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 buildingMITn8n 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 buildingMITn8n 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.


