> For the complete documentation index, see [llms.txt](https://docs.cubu.com/guides/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cubu.com/guides/technical-guide/webhooks/webhooks-reference/data-table-webhooks/webhook-fetch.md).

# Webhook: Fetch

This webhook fetches a specific data record from the remote system. The request contains the table’s slug and the remote record ID (the record ID is stored on the legacy database).

This method is called when a customer record is linked to a case record. The fetched data record is stored in the Customers table, and the local record is linked to the case record.

If a local data record already exists, it is **updated** with the remote data.

## API

### URL

```
[base-url]/dataTable/actions/fetch
```

### Request Body

* **dataTableSlug:** The data table's slug.
* **remoteRecordId:** The ID of the record to fetch from the legacy system.

### Response Body

* **remoteRecordId**: The ID of the record on the legacy system.
* **displayName**: The data record display name.
* **fields**: An array of:
  * **slug**: The field’s slug.
  * **data**: The field’s data object (see [Broken mention](broken://pages/itaUBH5HyrlrYQTjV1eX)).
