---
schema_version: "1"
id: 1f086e83060d5333e043dfa5b31dd32eb3f279bc7396e4bfd14742bb760ed647
title: CdpActivation Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_ConnectAPI_CdpActivation_static_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivation_static_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 32657a3ccae494408132c430ca896eac9ba897e8034479a26defecadab0ee486
description: Get, create, update, and delete Data 360 activations.These methods are for CdpActivation. All methods are static.Get activations.Get a paginated list of activations.Create an activation.Delete an activation.Get an activation by ID.Update an activation by ID.
---
# CdpActivation Class

Get, create, update, and delete Data 360 activations.

## 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.")

## CdpActivation Methods

These methods are for CdpActivation. All methods are static.

- **[getActivations()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivation_static_methods.htm#apex_ConnectAPI_CdpActivation_getActivations_1)**  
    Get activations.
- **[getActivationsPaginated(batchSize, offset, orderBy, filters)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivation_static_methods.htm#apex_ConnectAPI_CdpActivation_getActivationsPaginated_1)**  
    Get a paginated list of activations.
- **[createActivation(input)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivation_static_methods.htm#apex_ConnectAPI_CdpActivation_createActivation_1)**  
    Create an activation.
- **[deleteActivation(activationId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivation_static_methods.htm#apex_ConnectAPI_CdpActivation_deleteActivation_1)**  
    Delete an activation.
- **[getActivation(activationId)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivation_static_methods.htm#apex_ConnectAPI_CdpActivation_getActivation_1)**  
    Get an activation by ID.
- **[updateActivation(activationId, input)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_ConnectAPI_CdpActivation_static_methods.htm#apex_ConnectAPI_CdpActivation_updateActivation_1)**  
    Update an activation by ID.

### getActivations()

Get activations.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ActivationCollection getActivations()

#### Return Value

Type: [ConnectApi.ActivationCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_activation_collection.htm "Represents a collection of activations.")

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

Get a paginated list of activations.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.ActivationCollection getActivationsPaginated(Integer batchSize, Integer offset, String orderBy, String filters)

#### Parameters

batchSize

Type: Integer

Number of results to return. Values are from 1 through 200. If unspecified, the default value is 20.

offset

Type: Integer

Number of rows to skip before returning results. Must be greater than or equal to 0. If unspecified, no rows are skipped.

orderBy

Type: String

Specify createdDate to sort results by creation date. If unspecified, items are returned by ID in ascending order.

filters

Type: String

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

- name (field name: name; description: name of the activation)
- marketSegmentId (field name: segmentId; description: segment ID of the activation)
- activationTargetId (field name: activationTarget.id; description: activation target ID of the activation)
- activationRefreshType (field name: refreshType; description: refresh type of the activation; example: incremental)
- activationStatus (field name: status; description: status of the activation, which accepts only the values in the status response field; example: active)

#### Return Value

Type: [ConnectApi.ActivationCollection](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_activation_collection.htm "Represents a collection of activations.")

### createActivation(input)

Create an activation.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.Activation createActivation(ConnectApi.ActivationDefinitionInput input)

#### Parameters

input

Type: [ConnectApi.ActivationDefinitionInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_activation_definition.htm "Represents the activation definition input.")

Input representation for an activation.

#### Return Value

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

### deleteActivation(activationId)

Delete an activation.

#### API Version

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

#### Note

Before deleting an activation, ensure there are no downstream systems that expect data from it. After you delete an activation, Data 360 stops sending data to any downstream systems that are associated with the deleted activation. To identify the downstream system (activation target) that's associated with the activation, use the getActivation(activationId) resource. It provides the activation target details needed to evaluate the impact before deleting the activation.

60.0

#### Requires Chatter

No

#### Signature

public static Void deleteActivation(String activationId)

#### Parameters

activationId

Type: String

The unique identifier (ID) or developer name of a specific activation target.

#### Return Value

Type: Void

### getActivation(activationId)

Get an activation by ID.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.Activation getActivation(String activationId)

#### Parameters

activationId

Type: String

The unique identifier (ID) or developer name of a specific activation target.

#### Return Value

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

### updateActivation(activationId, input)

Update an activation by ID.

#### API Version

60.0

#### Requires Chatter

No

#### Signature

public static ConnectApi.Activation updateActivation(String activationId, ConnectApi.ActivationDefinitionInput input)

#### Parameters

activationId

Type: String

The unique identifier (ID) or developer name of a specific activation target.

input

Type: [ConnectApi.ActivationDefinitionInput](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_activation_definition.htm "Represents the activation definition input.")

Input representation for an activation.

#### Return Value

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