Connector for Salesforce Commerce Cloud Manual / Version 2110
Table Of Contentssfcc.default-locale
| |
Type | java.util.Locale |
Default | |
Description | The default locale for accessing the commerce system if no locale parameter was passed into request. |
sfcc.link.link-templates
| |
Type | java.util.Map<java.lang.String,java.lang.String> |
Default | |
Description | Map of link templates. Map of defaults: {@link this#DEFAULT_LINK_TEMPLATES} Only lookup keys lowercase and without "_" are valid. Known default lookup keys are defined in {@link com.coremedia.commerce.adapter.base.entities.links.StorefrontRefKeysCommerceLed} These patterns can include tokens which will be replaced. These tokens must be well known. The following tokens are predefined:
|
sfcc.link.storefront-url
| |
Type | java.lang.String |
Default | |
Description | Base URL of the commerce storefront |
sfcc.link.storefront-url-for
| |
Type | java.util.Map<java.lang.String,java.lang.String> |
Default | |
Description | Storefront URLs, which are used to build storefront links to shop pages and resources for different environments. The structure of the Map should be: key=environment, value=url. The multi environment support needs to be activated via `metadata.custom-entity-param-names=environment`. Examples: sfcc.link.storefront-url-for.us=https://sandbox-us.demandware.net/on/demandware.store/ sfcc.link.storefront-url-for.de=https://sandbox-de.demandware.net/on/demandware.store/ The environment name for the custom entity param must be configured on the client side (CAE, Studio, etc.) global configuration example: `commerce.hub.data.customEntityParams.environment=us` You may also configure multiple storefront URLs for different sites/environments via the commerce settings struct: commerce (Struct) customEntityParams (Struct) environment=siteus (String) Keep the lookup keys simple. Use lowercase with no special characters Be aware you need to configure the environment values on the client site first, otherwise lookups can't work and will fail. There is no default fallback, as this could lead to even more confusion. |
sfcc.oauth.client-id
| |
Type | java.lang.String |
Default | |
Description | ClientID used for all Data and Shop REST API Calls to the Salesforce Commerce System. Used to set permissions for the ClientID on Shop and Data API - for example, which resources the ClientID is allowed to access |
sfcc.oauth.client-password
| |
Type | java.lang.String |
Default | |
Description | Password used together with the clientId. |
sfcc.oauth.host
| |
Type | java.lang.String |
Default | account.demandware.com |
Description | Host name of central SFCC endpoint for authentication. No need to customize. |
sfcc.oauth.path
| |
Type | java.lang.String |
Default | /dw/oauth2/access_token |
Description | Path to retrieve access token. |
sfcc.oauth.protocol
| |
Type | java.lang.String |
Default | https |
Description | Protocol used to request access token. |
sfcc.oauth.retry-delay
| |
Type | java.time.Duration |
Default | 5s |
Description | The time after which a retry is attempted to fetch an ocapi access token. Until then, all requests that require an access token will end with an IllegalStateException in log. |
sfcc.ocapi.custom-attributes-for
| |
Type | java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
Default | |
Description | Configure attribute names, which are transmitted to the client as customAttributes. The key is the name of the OCAPI Document in lowercase and removed "_" {@link AbstractOCDocument#getOcType()}. The value is a comma separated list of attributes, which shall be available on the client side via com.coremedia.livecontext.ecommerce.common.CommerceBean#getCustomAttributes. The value is transmitted as String representation of the JSON Object. Example: sfcc.ocapi.custom-attributes-for.product=image_groups,c_isSale |
sfcc.ocapi.custom-expand-parameters-for
| |
Type | java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
Default | |
Description | Configure expand parameter names, which are requested from the commerce system via the "expand" parameter. The keys should be defined in lower case without special characters. The value is a list of expand parameter values. Example: sfcc.ocapi.custom-expand-parameters-for.products=images,prices,variations |
sfcc.ocapi.custom-localized-attributes-for
| |
Type | java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
Default | |
Description | Same as {@link #customAttributesFor} but for localized properties. Only the value for the current locale of the request is transmitted to the client. |
sfcc.ocapi.data.customer-groups.count
| |
Type | java.lang.Integer |
Default | |
Description | Optional count for retrieving only a subset of all customer groups. If not set, the default behaviour of the salesforce Data API will apply. |
sfcc.ocapi.host
| |
Type | java.lang.String |
Default | |
Description | Host name (FQDN) of your SFCC Instance. |
sfcc.ocapi.http-client.accept-cookies
| |
Type | java.lang.Boolean |
Default | false |
Description | Setting if cookies should be accepted. |
sfcc.ocapi.http-client.connection-pool-size
| |
Type | java.lang.Integer |
Default | 20 |
Description | Defines the overal connection limit for a connection pool. |
sfcc.ocapi.http-client.connection-request-timeout-ms
| |
Type | java.lang.Integer |
Default | 60000 |
Description | Http Client Configuration for Rest communication with SFCC OCAPI Services. |
sfcc.ocapi.http-client.connection-timeout-ms
| |
Type | java.lang.Integer |
Default | 60000 |
Description | Http Client Configuration for Rest communication with SFCC OCAPI Services. |
sfcc.ocapi.http-client.max-connections-per-route
| |
Type | java.lang.Integer |
Default | 2 |
Description | Defines a connection limit per one HTTP route. |
sfcc.ocapi.http-client.network-address-cache-ttl-ms
| |
Type | java.lang.Integer |
Default | 30000 |
Description | Http Client Configuration for Rest communication with SFCC OCAPI Services. |
sfcc.ocapi.http-client.socket-timeout-ms
| |
Type | java.lang.Integer |
Default | 60000 |
Description | Http Client Configuration for Rest communication with SFCC OCAPI Services. |
sfcc.ocapi.http-client.trust-all-ssl-certificates
| |
Type | java.lang.Boolean |
Default | true |
Description | Setting if client should trust all ssl certificates. |
sfcc.ocapi.protocol
| |
Type | java.lang.String |
Default | https |
Description | Protocol used for OCAPI REST communication. |
sfcc.ocapi.sandbox
| |
Type | java.lang.Boolean |
Default | false |
Description | Set to true if integrating with a sandbox instance. Adjust base paths for REST API requests On sandbox instances the base paths must be prefixed with '/s/{siteId}' see: https://documentation.demandware.com/DOC2/topic/com.demandware.dochelp/OCAPI/16.4/usage/UrlSchema.html |
sfcc.ocapi.version
| |
Type | java.lang.String |
Default | v21_9 |
Description | Version of OCAPI Rest Service used. |
sfcc.search-limit
| |
Type | java.lang.Integer |
Default | 200 |
Description | The default search limit as supported by the SFCC backend. |
sfcc.single-value-search-facets
| |
Type | java.util.List<java.lang.String> |
Default | |
Description | List of facet keys. These facets only support single values to be selected. |
cache.capacities
| |
Type | java.util.Map<java.lang.String,java.lang.Long> |
Default | |
Description | Number of cache entries per cache class until cache eviction takes place. The keys must match the cache classes as defined by the cache keys. Please refer to javadoc of com.coremedia.cache.CacheKey. |
cache.timeout-seconds
| |
Type | java.util.Map<java.lang.String,java.lang.Long> |
Default | |
Description | TTL in seconds until certain cache entries are invalidated. |
entities.recompute-on-invalidation
| |
Type | java.lang.Boolean |
Default | false |
Description | Whether or not to recompute entities proactively on invalidation. |
entities.send-invalidations
| |
Type | java.lang.Boolean |
Default | true |
Description | Whether or not to propagate invalidations of entities to the clients. |
metadata.additional-metadata
| |
Type | java.util.Map<java.lang.String,java.lang.String> |
Default | |
Description | Map of additional metadata. Can be used as customization hook. All properties starting with "metadata.additional-metadata.*" are transmitted to the generic client on the CMS side. |
metadata.custom-attributes-format
| |
Type | com.coremedia.commerce.adapter.base.entities.CustomAttributesFormat |
Default | |
Description | Format of the custom attribute values. The keys are always plain strings. Used to identify the deserialization format on the CMS side. |
metadata.custom-entity-param-names
| |
Type | java.util.Collection<java.lang.String> |
Default | |
Description | List of parameter names, which values need to be transmitted with every entity request from the CMS side. |
metadata.replacement-tokens
| |
Type | java.util.Map<java.lang.String,java.lang.String> |
Default | |
Description | Map of key value pairs. Used as replacement map for example for link building in the generic client on the CMS side. |
metadata.vendor
| |
Type | java.lang.String |
Default | |
Description | Name of the vendor. Used to identify the connected vendor on the CMS side. |
Table 9.1. SFCC Commerce Adapter related Properties