Salesforce B2C Commerce 23.6 > B2C Commerce API > B2C Commerce Script > dw.customer
dw.customer
Class CustomerCDPData
Object
dw.customer.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
Properties
empty  :  boolean  (Read Only)
Return true if the CDPData is empty (has no meaningful data)
segments  :  String[]  (Read Only)
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
getSegments() : String[]
Returns an array containing the CDP segments for the customer, or an empty array if no segments found
isEmpty() : boolean
Return true if the CDPData is empty (has no meaningful data)
Methods inherited from class Object
Method Detail
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

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.