---
schema_version: "1"
id: 4568aede2c9a9c8e56212b63183b2f03b8f545010d913cb006b635339d427b61
title: CdpActivationTarget Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_CdpActivationTarget_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivationTarget_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d8d2f960259d5e0e8dfc9ab50bea29d28409a2adcf3061a12eebc9c5bbedf9d8
description: Get, create, and update Data 360 activation targets.These methods are for CdpActivationTarget. All methods are static.Create an activation target.Get an activation target by ID.Get a list of activation targets.Get a paginated list of activation targets.Update an activation target.
---
# CdpActivationTarget Class

Get, create, and update Data 360 activation targets.

## Namespace

[ConnectApi](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_connect_api.htm "The ConnectApi namespace (also called Connect in Apex) provides classes for accessing the same data available in Connect REST API. Use Connect in Apex to create custom experiences in Salesforce.")

## CdpActivationTarget Methods

These methods are for CdpActivationTarget. All methods are static.

- **[createActivationTarget(input)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivationTarget_static_methods.htm#apex_ConnectAPI_CdpActivationTarget_createActivationTarget_3)**  
    Create an activation target.
- **[getActivationTarget(activationTargetId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivationTarget_static_methods.htm#apex_ConnectAPI_CdpActivationTarget_getActivationTarget_1)**  
    Get an activation target by ID.
- **[getActivationTargets()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivationTarget_static_methods.htm#apex_ConnectAPI_CdpActivationTarget_getActivationTargets_1)**  
    Get a list of activation targets.
- **[getActivationTargetsPaginated(batchSize, offset, orderBy, filters)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivationTarget_static_methods.htm#apex_ConnectAPI_CdpActivationTarget_getActivationTargetsPaginated_2)**  
    Get a paginated list of activation targets.
- **[updateActivationTarget(activationTargetId, input)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivationTarget_static_methods.htm#apex_ConnectAPI_CdpActivationTarget_updateActivationTarget_2)**  
    Update an activation target.

### createActivationTarget(input)

Create an activation target.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ActivationTarget createActivationTarget(ConnectApi.ActivationTargetInput input)

#### Parameters

input

Type: [ConnectApi.ActivationTargetInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_activation_target.htm "Input details for the activation target.")

Input details for the activation target.

#### Return Value

Type: [ConnectApi.ActivationTarget](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_activation_target.htm "Represents an activation target.")

### getActivationTarget(activationTargetId)

Get an activation target by ID.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ActivationTarget getActivationTarget(String activationTargetId)

#### Parameters

activationTargetId

Type: String

ID of the activation target.

#### Return Value

Type: [ConnectApi.ActivationTarget](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_activation_target.htm "Represents an activation target.")

### getActivationTargets()

Get a list of activation targets.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ActivationTargetCollection getActivationTargets()

#### Return Value

Type: [ConnectApi.ActivationTargetCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_activation_target_collection.htm "Represents a collection of activation targets.")

### getActivationTargetsPaginated(batchSize, offset, orderBy, filters)

Get a paginated list of activation targets.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ActivationTargetCollection getActivationTargetsPaginated(Integer batchSize, Integer offset, String orderBy, String filters)

#### Parameters

batchSize

Type: Integer

Number of results to return. Values are from 1 through 200. For example, specify 20 to return 20 results.

offset

Type: Integer

Number of rows to skip before returning results. Must be greater than or equal to 0. For example, specify 0 to skip no rows.

orderBy

Type: String

Sort order for the result set. Results are ordered by creation date. Specify createddate to order results in ascending order. Specify createddate desc to order results in descending order.

filters

Type: String

Filter the result set to a more narrow scope or specific type. These filters are supported:

- masterLabel - Matches the field name, which is a string that identifies the name of the activation target.
- targetStatus - Matches the field status, which is an enum that indicates the status of the activation target. Values must match those listed in the status response field.
- connectionType - Matches the field platformType, which is an enum that indicates the platform type of the activation target. Values must match those listed in the platformType response field.
- platformName - Matches the field platformName, which is a string that indentifies the platform name of the activation target.

These are examples of filter specifications:

- masterLabel in Target002
- targetStatus in active
- platformName in Customer Data Platform
- targetStatus in active AND platformName in Amazon S3

#### Return Value

Type: [ConnectApi.ActivationTargetCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_activation_target_collection.htm "Represents a collection of activation targets.")

### updateActivationTarget(activationTargetId, input)

Update an activation target.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ActivationTarget updateActivationTarget(String activationTargetId, ConnectApi.ActivationTargetInput input)

#### Parameters

activationTargetId

Type: String

ID of the activation target.

input

Type: [ConnectApi.ActivationTargetInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_activation_target.htm "Input details for the activation target.")

Input details for the activation target.

#### Return Value

Type: [ConnectApi.ActivationTarget](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_activation_target.htm "Represents an activation target.")