"runIndex" seems unavailable with the $('node') format

Describe the problem/error/question

The runIndex property seems to have gone missing from the current method of accessing data (Output of other nodes | n8n Docs)

$('node-name').runIndex returns nothing now!
Only $node.Set.runIndex returns the proper value.

Please share your workflow

Information on your n8n setup

  • n8n version: 1.39.0
  • Database (default: SQLite): Postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main): main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Windows/Linux

Hey @shrey-42,

That makes sense as we don’t document that option with the newer syntax. I will take a look and see if we have put it somewhere else, what do you normally use that value for?

Hey @Jon,


To accumulate the output of a node, usually, that exists within a loop.

Especially when:

  1. I don’t want to return the data of each Loop Run back to the Loops node, and hence, the desired data is not available in the Done output.
  2. The node whose data is desired, is nested. Example, the desired data is the output of Set :

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.