---
schema_version: "1"
id: 0d1689aa15c4f423aa5490398a732b5649eb1bbbb2ef4d550f2b649d501a97ac
title: MarketingLink
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_marketinglink.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_marketinglink.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 51d203bbba19df29e902cd1ea51825726f3ddbd0cd168c6b14889ac8bbceda6d
description: Represents an Account Engagement marketing link record, either a custom redirect or a file, that has been synced to Salesforce. This object is available in API version 42.0 and later.
---
# MarketingLink

Represents an Account Engagement marketing link record, either a custom redirect or a file, that has been synced to Salesforce. This object is available in API version 42.0 and later.

## Supported Calls

describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search()

## Special Access Rules

To access this object, your org must use Account Engagement and users need the CRM User or Sales User permission set.

## Fields

| Field Name | Details |
| --- | --- |
| CampaignId | 
Type

reference

Properties

Filter, Group, Nillable, Sort

Description

The ID of the related campaign.





 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp that indicates when the current user last viewed a record that is related to this marketing link.





 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time when the current user last viewed this record. If this value is null, this record might only have been referenced (see LastReferencedDate) and not viewed.





 |
| Name | 

Type

string

Properties

Filter, Group, Sort

Description

The name of the marketing link.





 |
| TargetUrl | 

Type

url

Properties

Filter, Group, Sort

Description

The target URL of the marketing link.





 |
| TotalTrackedLinkClicks | 

Type

int

Properties

Defaulted on create, Filter, Group, Nillable, Sort

Description

The total number of clicks for the redirect. Includes clicks from visitors and identified prospects. When a person clicks the link multiple times, each click is counted in this number.





 |
| Type | 

Type

picklist

Properties

Defaulted on create, Filter, Group, Restricted picklist, Sort

Description

Specifies the type of marketing link record, either a custom redirect or file.





 |
| UniqueTrackedLinkClicks | 

Type

int

Properties

Defaulted on create, Filter, Group, Nillable, Sort

Description

The number of unique clicks for the redirect. Includes clicks from visitors and identified prospects. Only the first click is counted in this number.





 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[MarketingFormEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 44.0)

Change events are available for the object.

[MarketingLinkFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.