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

Property Summary 

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

Constructor Summary 

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

Method Summary 

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)

Methods inherited from class Object 

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

Property Details 

empty 

empty: Boolean (read-only)

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


segments 

segments: String[] (read-only)

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


Method Details 

getSegments() 

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() 

isEmpty(): Boolean

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

Returns:

  • true if CDPData is empty, false otherwise