# Data Pinning

When processing data obtained from external sources, this tool eliminates the need for constant interaction with the external system, ultimately resulting in time and resource efficiencies.

**Benefits:**

If your process automation is dependent on an external mechanism for activation, such as a webhook request, the capability to pin data allows you to avoid relying on the external system for each iteration of testing the workflow.

During tests, if the external resource is subject to data or usage restrictions, it is advisable to pin the data in order to prevent exceeding those limitations.

You have the ability to retrieve and mark the data needed for testing purposes, ensuring that the data remains uniform across all phases of your workflow testing.

### Pin data <a href="#pin-data" id="pin-data"></a>

To pin data in a node:

1. Run the node to load data.
2. In the **OUTPUT** view, select **Pin data** ![](https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FGCUWisK7RFQxtokgbZcJ%2Fimage.png?alt=media\&token=2b521261-be98-4697-b432-d555f190fa17). When data pinning is active, the button changes to show this ![](https://125370873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzdpN2Lz0hzXpnNScDzVt%2Fuploads%2FYHApexyqx7HDSuxNfHOm%2Fimage.png?alt=media\&token=4bf3efee-4ba8-404c-b14f-04559a2aeefb).

### Unpin data <a href="#unpin-data" id="unpin-data"></a>

When data pinning is active, the button changes to show this ![Active pin data icon](https://docs.n8n.io/_images/data/data-pinning/data-pinning-button-active.png). To unpin data and fetch fresh data on the next execution, select the active **Pin data** ![Active pin data icon](https://docs.n8n.io/_images/data/data-pinning/data-pinning-button-active.png) icon.

{% hint style="info" %}
Data pinning is not possible for production workflow runs. It is specifically designed to assist in testing workflows while they are being developed. You can't pin data if the output data includes binary data.
{% endhint %}
