Class CustomerCDPData

Represents the read-only Customer's Salesforce CDP (Customer Data Platform) data for a Customer in Commerce Cloud. Please see Salesforce CDP enablement documentation

PropertyDescription
empty: Boolean (read-only)Return true if the CDPData is empty (has no meaningful data)
segments: String[] (read-only)Returns an array containing the CDP segments for the customer, or an empty array if no segments found

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getSegments()Returns an array containing the CDP segments for the customer, or an empty array if no segments found
isEmpty()Return true if the CDPData is empty (has no meaningful data)

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

empty: Boolean (read-only)

Return true if the CDPData is empty (has no meaningful data)


segments: String[] (read-only)

Returns an array containing the CDP segments for the customer, or an empty array if no segments found


getSegments(): String[]

Returns an array containing the CDP segments for the customer, or an empty array if no segments found

Returns:

  • a collection containing the CDP segments for the customer

isEmpty(): Boolean

Return true if the CDPData is empty (has no meaningful data)

Returns:

  • true if CDPData is empty, false otherwise