Newer Version Available

This content describes an older version of this product. View Latest

CdpSegment Class

Create, delete, get, publish, and update Data Cloud segments.

Namespace

ConnectApi

CdpSegment Methods

The following are methods for CdpSegment. All methods are static.

createSegment(input)

Create a segment.

API Version

55.0

Requires Chatter

No

Signature

public static ConnectApi.CdpSegmentOutput createSegment(ConnectApi.CdpSegmentInput input)

Parameters

input
Type: ConnectApi.CdpSegmentInput
A ConnectApi.CdpSegmentInput class.

Return Value

Type: ConnectApi.CdpSegmentOutput

deleteSegment(segmentApiName)

Delete a segment.

API Version

56.0

Requires Chatter

No

Signature

public static Void deleteSegment(String segmentApiName)

Parameters

segmentApiName
Type: String
API name of the segment.

Return Value

Type: Void

executePublishAdhoc(segmentId)

Publish a segment.

API Version

56.0

Requires Chatter

No

Signature

public static ConnectApi.CdpSegmentActionOutput executePublishAdhoc(String segmentId)

Parameters

segmentId
Type: String
ID of the segment to publish.

getSegment(segmentApiName)

Get a segment.

API Version

56.0

Requires Chatter

No

Signature

public static ConnectApi.CdpSegmentContainerOutput getSegment(String segmentApiName)

Parameters

segmentApiName
Type: String
API name of the segment.

getSegments()

Get segments.

API Version

55.0

Requires Chatter

No

Signature

public static ConnectApi.CdpSegmentContainerOutput getSegments()

getSegmentsPaginated(batchSize, offset, orderBy)

Get an ordered batch of segments.

API Version

56.0

Requires Chatter

No

Signature

public static ConnectApi.CdpSegmentContainerOutput getSegmentsPaginated(Integer batchSize, Integer offset, String orderBy)

Parameters

batchSize
Type: Integer
Number of items to return. Values are from 1–200. If unspecified, the default value is 20.
offset
Type: Integer
Number of rows to skip before returning results. If unspecified, no rows are skipped.
orderBy
Type: String
Sort order for the result set, such as Name ASC or MarketSegmentType DESC. If unspecified, items are returned by name in ascending order.

updateSegment(segmentApiName, input)

Update a segment.

API Version

56.0

Requires Chatter

No

Signature

public static ConnectApi.CdpSegmentOutput updateSegment(String segmentApiName, ConnectApi.CdpSegmentInput input)

Parameters

segmentApiName
Type: String
API name of the segment.
input
Type: ConnectApi.CdpSegmentInput
A ConnectApi.CdpSegmentInput class with the updates.

Return Value

Type: ConnectApi.CdpSegmentOutput