---
title: "Deprecation: #110285 - DataHandler->setCorrelationId()"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-110285-1784678400"
source: "Changelog/15.0/Deprecation-110285-DataHandlerSetCorrelationId.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #110285 - DataHandler->setCorrelationId()

See [forge#110285](https://forge.typo3.org/issues/110285)

## Description

The method
`\TYPO3\CMS\Core\DataHandling\DataHandler->setCorrelationId()` has been
marked as deprecated and will be removed in TYPO3 v16.0.

The correlation id of a DataHandler operation can now be handed over directly
to `DataHandler->start()` as fifth argument. This also ensures that the
correlation id is passed on to internally spawned sub instances of the
DataHandler, so all record history entries of one logical operation share the
same correlation scope. Setting the correlation id via the setter after
`start()` did not propagate it to sub instances and is therefore
superseded.

## Impact

Calling `DataHandler->setCorrelationId()` triggers a PHP
`E_USER_DEPRECATED` error.

The extension scanner detects usages of the deprecated method as weak match.

## Affected installations

All installations with custom extensions calling
`DataHandler->setCorrelationId()`, usually to group the record history
entries of one logical operation. This is a rarely used API method.

## Migration

Pass the `\TYPO3\CMS\Core\DataHandling\Model\CorrelationId` instance
directly to `DataHandler->start()` instead:

```php
// Before
$dataHandler->start($dataMap, $commandMap);
$dataHandler->setCorrelationId($myCorrelationId);
$dataHandler->process_datamap();

// After
$dataHandler->start($dataMap, $commandMap, correlationId: $myCorrelationId);
$dataHandler->process_datamap();
```
