> For the complete documentation index, see [llms.txt](https://docs.n8n.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.n8n.io/build/work-with-data/reference-data.md).

# Reference data

Referencing data, or data mapping, means accessing information from previous nodes in your workflow. This allows you to use output from earlier steps as input for later nodes, creating dynamic workflows that pass data through multiple operations.

When you reference data, you're not changing it. You're pointing to values that already exist so you can use them in node parameters, expressions, or custom code.

If you want to change the data you're referencing, see [Transforming data](/build/work-with-data/transform-data/approaches-for-transforming-data.md).

## How to reference data <a href="#how-to-reference-data" id="how-to-reference-data"></a>

The main way to reference data is using [expressions](/build/work-with-data/expressions-versus-data-nodes.md#expressions). You can create expressions by typing them in a parameter's field or dragging and dropping fields from the Input panel in the UI. Expressions will automatically figure out the correct item to use using [item linking](/build/work-with-data/reference-data/link-data-items.md).

## In this section

* [Use the UI mapper](/build/work-with-data/reference-data/use-the-ui-mapper.md): reference data by dragging and dropping fields in the editor.
* [Reference previous nodes](/build/work-with-data/reference-data/reference-previous-nodes.md): methods for working with the input of the current node and the output of previous nodes.
* [Link data items](/build/work-with-data/reference-data/link-data-items.md): how items link back to the items that generated them.

## Related resources

* [Work with data](/build/work-with-data.md)
* [Understand n8n's data structure](/build/work-with-data/understand-n8ns-data-structure.md)
* [Expressions versus data nodes](/build/work-with-data/expressions-versus-data-nodes.md)
* [Transform data](/build/work-with-data/transform-data.md)
* [Filter out unwanted data](/build/work-with-data/filter-out-unwanted-data.md)
* [Pin and mock data](/build/work-with-data/pin-and-mock-data.md)
* [Handle special data types](/build/work-with-data/handle-special-data-types.md)
* [Data tables](/build/work-with-data/data-tables.md)
