How to pass data from 1 to 3?

Hello guys, I have been using n8n for the last two days, and I have to say I’m very impressed with what this tool can do.

I have a simple scenario where I get some data sent to my webhook.

I want to use the data that contains this webhook in step 2 and step 3, but when trying to display the data in the javascript function in step 3 using console.log(item), it returns only the item of step 2.

How I can “pass” the data from step 1 to step 3 but maintaining the order of step 1 → step 2 → step 3

PD: How can I delete the “start” node? Or is this not possible? As my node starts with a webhook.

Thanks.

1 Like

Hi @yukyo

Welcome to the n8n community

You can’t delete the Start Node.

Regarding your other question. Double click on the webhook node to open it.

On the right side, you’ll see the output (After Execution)

1 - Select JSON as output method

2,3,4 - Click on the line and select the ‘Copy Item Path’ option

Now go to the Function node and paste that. You’ll get the value there.

But this scenario will be different if you use other nodes.

In other nodes, you can directly access the value of the previous node.

You can try with a Set node for example.

I clicked on Add Expression Button in the set node.

Here I can directly access all the previous nodes and their datas.

Hope it answers your question.

5 Likes

Thank you for the detailed answer @mcnaveen

1 Like

Glad it helps :smiley: Enjoy :heart:

1 Like