Custom variables#
WF² provides the following variables:
$binary
: incoming binary data from a node$data
: incoming raw data from a node$env
: contains environment variables$json
: incoming JSON data from a node$now
: a Luxon object containing the current timestamp. Equivalent toDateTime.now()
.$parameters
: parameters of the current node$position
: the index of an item in a list of items$resumeWebhookUrl
: the webhook URL to call to resume a waiting workflow.$runIndex
: how many times the node has been executed. Zero-based (the first run is 0, the second is 1, and so on).$today
: a Luxon object containing the current timestamp, rounded down to the day. Equivalent toDateTime.now().set({ hour: 0, minute: 0, second: 0, millisecond: 0 })
.$workflow
: workflow metadata
Examples#
$executionId#
Contains the unique ID of the current workflow execution.
1 2 3 |
|
$runIndex#
Contains the index of the current run of the node.
1 2 |
|
$workflow#
Gives information about the current workflow.
1 2 3 4 5 6 |
|
$resumeWebhookURL#
The weebhook URL to call to resume a waiting workflow.
See the Wait > On weebhook call documentation to learn more.