APIs for Customer Search

You can use the search relevance functionality to improved performance.

Many customers use the Salesforce B2C Commerce scripting API to run customer searches. B2C Commerce automatically performs a full-text search.

Note: To take advantage of the search relevance functionality and its improved performance, convert all code to use the searchProfiles and processProfiles methods.

API Usage

The dw.customer.CustomerMgr APIs behave as follows:

Customer Profile Batch Processing API

The scripting API, dw.customer.CustomerMgr.processProfiles() enables you to process customer profiles in batch mode. This API, based on the full text search service, can process a many profile objects with optimized search performance and memory management.

Use this API in custom jobs to replace these older APIs:

The dw.customer.CustomerMgr.processProfiles(…) API accepts a customer profile object query and a JavaScript callback function as input parameters. The method searches customer profiles based on the specified query parameters and executes the specified callback function for each search result.

Here is an example of how you would use this API:

function callback(profile: Profile)
 dw. customer.CustomerMgr.processProfiles("gender=1", callback);
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.