# How can I access data from a distant node?

**URL:** <https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668>\
**Category:** Questions\
**Created:** [January 8, 2025, 4:15pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668 "2025-01-08T16:15:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![presta\_melt](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/presta_melt/32/61373_2.png) [@presta\_melt](https://community.n8n.io/u/presta_melt)\
**Post date:** [January 8, 2025, 4:15pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668/1 "2025-01-08T16:15:29Z")

</div>

## Describe the problem/error/question

In the first code block, it works; I can successfully search for a value in my array.

## Please share your workflow

However, I can’t get it to work in the second block, where there’s an intermediate block. I don’t know how to reference the result of a node located further down in the in an absolute way.

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:** 1.72.1
- **Operating system:** ubuntu

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [January 8, 2025, 4:15pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668/2 "2025-01-08T16:15:31Z")

</div>

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:**

---

<div class="post-metadata">

**Author:** ![Ruslan\_Yanyshyn](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ruslan_yanyshyn/32/15080_2.png) [@Ruslan\_Yanyshyn](https://community.n8n.io/u/Ruslan_Yanyshyn)\
**Post date:** [January 8, 2025, 4:33pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668/3 "2025-01-08T16:33:39Z")

</div>

> [@presta\_melt](#):
>
> reference

Hey @presta_melt, you can reference the Previous node data using `{{ $('Previous node name').item... }}`.

---

<div class="post-metadata">

**Author:** ![presta\_melt](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/presta_melt/32/61373_2.png) [@presta\_melt](https://community.n8n.io/u/presta_melt)\
**Post date:** [January 8, 2025, 4:46pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668/4 "2025-01-08T16:46:36Z")

</div>

Oh sorry I meant how can I access data from a distant node? (Not just the previous one)

---

<div class="post-metadata">

**Author:** ![liam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/liam/32/34968_2.png) [@liam](https://community.n8n.io/u/liam)\
**Post date:** [January 8, 2025, 4:57pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668/5 "2025-01-08T16:57:52Z")

</div>

most of the time `{{ $('Previous node name').item... }}` work to access nodes even as far back as the trigger. but sometimes it isn’t able to get it, like if there are different branches of the workflow that converge back, in that case, use a merge node (combine by position)

that looks like this

 ![Screenshot 2025-01-08 at 11.56.17 AM](https://europe1.discourse-cdn.com/n8n/original/3X/f/9/f9050ea959222f13e8887acf40fd223fcac9bfef.png)

## This works most of the time

But usually you can do as @Ruslan_Yanyshyn mentioned like this

and the last node looks like this

 ![Screenshot 2025-01-08 at 11.53.43 AM](https://europe1.discourse-cdn.com/n8n/original/3X/4/a/4abf7cb2fc40130f945ffaedbf4e9cf22cb4f6e3.png)

---

<div class="post-metadata">

**Author:** ![presta\_melt](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/presta_melt/32/61373_2.png) [@presta\_melt](https://community.n8n.io/u/presta_melt)\
**Post date:** [January 8, 2025, 7:28pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668/6 "2025-01-08T19:28:29Z")

</div>

TY both of you for taking time to help me. 😀

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [January 15, 2025, 7:29pm UTC](https://community.n8n.io/t/how-can-i-access-data-from-a-distant-node/69668/7 "2025-01-15T19:29:23Z")

</div>

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