Files
n8n-docs/docs/data/expression-reference/prevnodedata.md
Kartik Balasubramanian 96e6ba167d Revamp the data section of n8n docs (#4077)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-02-25 14:30:33 +00:00

1019 B
Raw Blame History

PrevNodeData

name

Description: The name of the node that the current input came from.

Always uses the current nodes first input connector if there is more than one (e.g. in the Merge node).

Syntax: name

Returns: String

Source: Custom n8n functionality

outputIndex

Description: The index of the output connector that the current input came from. Use this when the previous node had multiple outputs (such as an If or Switch node).

Always uses the current nodes first input connector if there is more than one (e.g. in the Merge node).

Syntax: outputIndex

Returns: Number

Source: Custom n8n functionality

runIndex

Description: The run of the previous node that generated the current input.

Always uses the current nodes first input connector if there is more than one (e.g. in the Merge node).

Syntax: runIndex

Returns: Number

Source: Custom n8n functionality