n8n-docs/docs/code-examples/expressions/variables.md
Deborah Barnard 7c43f7bad6 menu refactor
2022-08-08 11:57:44 +01:00

26 lines
592 B
Markdown

# Custom variables
--8<-- "_snippets/code-examples/variables-list.md"
## Examples
### $workflow
Gives information about the current workflow.
```js
// Boolean. Whether the workflow is active (true) or not (false)
$workflow.active
// Number. The workflow ID.
$workflow.id
// String. The workflow name.
$workflow.name
```
### $resumeWebhookUrl
The webhook URL to call to resume a [waiting](/integrations/builtin/core-nodes/n8n-nodes-base.wait/) workflow.
See the [Wait > On webhook call](/integrations/builtin/core-nodes/n8n-nodes-base.wait/#webhook-call) documentation to learn more.