Custom executions data#
You can set custom data on your workflow using the Code node or the Execution Data node. n8n records this with each execution. You can then use this data when filtering the executions list, or fetch it in your workflows using the Code node.
Custom executions data is available on:
- Cloud: Pro, Enterprise
- Self-Hosted: Enterprise
Available in version 0.222.0 and above.
Set and access custom data using the Code node#
This section describes how to set and access data using the Code node. Refer to Execution Data node for information on using the Execution Data node to set data. You can't retrieve custom data using the Execution Data node.
Set custom executions data#
Set a single piece of extra data:
Set all extra data. This overwrites the whole custom data object for this execution:
There are limitations:
- They must be strings
keyhas a maximum length of 50 characters
valuehas a maximum length of 255 characters
- n8n supports a maximum of 10 items of custom data
Access the custom data object during execution#
You can retrieve the custom data object, or a specific value in it, during an execution:
1 2 3 4 5
1 2 3 4 5