Conceptual Doubt - Loosing context on multiple lines

Describe the problem/error/question

my first node (NocoDb) returns two rows from the table (ex: 28,29) the workflow follows up processing the two rows at once. At any point if I need to use those Ids (28,29) N8N doesn’t know which row is which what is giving me a hard time to mark the register as processed. What would be the right approach to tackle this?

What is the error message (if any)?

No message just a conceptual error… it marks only one row as processed (because of the first() function I used for testing as I could not get the right ID)

Please share your workflow

Share the output returned by the last node

It looses the context and mark 1 row only as processed
i’m self hosted

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

hello @Alexandre_Leitao

if you don’t have any aggregations in the chain (e.g. all nodes output the same amount of items), you can refer to the linked item with the $('node_name').item.json.node_property syntax. Otherwise you should determine what to use on you own :slight_smile:

Usually you will take all items of the referenced node with $('node_name').all() syntax and then figure out which one you will need

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