SAP Connector Configuration
Info: This feature in Bloomreach Content requires a standard or premium license. Contact Bloomreach for licensing details.
Overview
The SAP connector uses environment variables defined in the .env file to configure integration with SAP. For general information about configuring the brX GraphQL Service, see Configure brX GraphQL Service.
Configuration Options
Set the following environment variables in your .env file to connect the brX GraphQL Service to SAP:
| Property Name | Description | Example Value(s) | Default Value |
|---|---|---|---|
| SAP_API_BASE_URL | SAP API base URL. | 'https://api.<instance_ID>.cc.commerce.ondemand.com/rest/v2' | |
| SAP_AUTH_BASE_URL | SAP OAuth2 server URL. | 'https://api.<instance_ID>.cc.commerce.ondemand.com/authorizationserver' | |
| SAP_BASE_SITE_ID | SAP site or project instance name. | 'mysite' | |
| SAP_CLIENT_ID | OAuth2 client ID for SAP requests. | 'myApollo' | |
| SAP_CLIENT_SECRET | OAuth2 client secret for SAP requests. | 'changeIt' | |
| SAP_SCOPE | OAuth2 scope(s) for SAP requests. | 'basic' | |
| SAP_MEDIA_BASE_URL | Base URL for product image resources. | 'https://api.<instance_ID>.cc.commerce.ondemand.com' | |
| SAP_DEFAULT_CATALOG_IDENTIFIER | Default product catalog identifier. | 'myProductCatalog' | |
| SAP_DEFAULT_CATALOG_VERSION_ID | Default product catalog version name. | 'Online' | |
| SAP_CATEGORY_SELECTOR_NAME | Selector name to filter products by category. Use 'category' for B2C or 'allCategories' for B2B. | 'category', 'allCategories' |
Configure these properties according to your SAP environment and project requirements. The .env file must be updated and the service restarted for changes to take effect.