---
schema_version: "1"
id: 8e26a48acb70d9f992189e8672c9496c293e821db0ed3734855d7f21fe16e04b
title: MetricDataLink
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_metricdatalink.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_metricdatalink.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6248761cf65fbaff3d4efa7a28e79c8d9692fcc54646561883ab34938ea0eadf
description: The link between the metric and the data source, such as a report.
---
# MetricDataLink

The link between the metric and the data source, such as a report.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

The original WDC feature is unavailable as of Spring '22. This object isn't available as of API version 54.0. For more information, see [Phased WDC (legacy Work.com) Feature Retirement](https://help.salesforce.com/s/articleView?id=000356306&type=1&language=en_US).

## Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Fields

| Field Name | Details |
| --- | --- |
| DatasourceFieldName | 
Type

string

Properties

Create, Filter, Group, Sort, Update

Description

The field name of the data source, such as a report summary field.



 |
| DataSourceId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the data source.



 |
| LastSynchronizationTime | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The last time the data was synchronized.



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, Sort

Description

The name given to the data link record.



 |
| TargetId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the metric that the data is linked to.



 |

## Associated Objects

This object has the following associated objects. Unless noted, they are available in the same API version as this object.

[MetricDataLinkHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

The original WDC feature is unavailable as of Spring '22. This object isn't available as of API version 54.0. For more information, see [Phased WDC (legacy Work.com) Feature Retirement](https://help.salesforce.com/s/articleView?id=000356306&type=1&language=en_US).