# DataItemLink property on report data items
> Version: _Available from runtime version 1.0._
Specifies matching fields in two data items that are linked by the devenv-dataitemlinkreference-property. Set DataItemLink on the child data item. The referenced data item can be its parent or another ancestor.
## Applies to
 Report data items
## Remarks
Use the following syntax:
`<Field>=field(<ReferenceField>)`
Placeholder|Description
`<Field>`|A field from the child data item.
`<ReferenceField>`|A field from the parent or ancestor data item identified by the devenv-dataitemlinkreference-property.
To link more than one pair of fields, separate the links with commas.
The DataItemLink property sets a filter on the child data item. The filter selects records that have the same field values in the referenced and child data items.
For example, a Customer parent data item and a `Sales Header` child data item both contain a customer number. Set DataItemLinkReference on the child data item to the Customer data item. Then set DataItemLink on the child data item as follows:
```al
DataItemLink = "Sell-to Customer No." = field("No.");
```
This filter selects sales headers for the current customer. You can create the same filter in the ../triggers-auto/reportdataitem/devenv-onpredataitem-reportdataitem-trigger of the child data item:
```al
SetRange("Sell-to Customer No.", Customer."No.");
```
## Related information
../triggers-auto/reportdataitem/devenv-onpredataitem-reportdataitem-trigger
devenv-dataitemlinkreference-property
DataItemLink property for queries<devenv-dataitemlink-query-property>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-dataitemlink-reports-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-dataitemlink-reports-property/
