Salesforce Commerce Cloud
Prerequisites
To connect Salesforce Commerce Cloud to Fivetran, you need:
- A Salesforce Commerce Cloud account
- Administrator permissions
- Access to the following authorization scopes for Salesforce Commerce Cloud's Admin API:
- sfcc.products
- sfcc.promotions
- sfcc.customerlists
- sfcc.catalogs
- sfcc.gift-certificates
- sfcc.source-codes
- sfcc.orders
- Separate API client applications to sync tables supported through Salesforce Commerce Cloud API and Open Commerce API (OCAPI) respectively.
Setup Instructions
- Log in to your Salesforce Commerce Cloud account.
- On the left navigation menu, click API Client.
- In the API Clients page, do the following:
- Click Add API Client.
- Enter a Display Name for the API Client.
- Enter your Password and then Confirm Password for the new client. Make a note of the password (client secret). You will need it to configure Fivetran.
- Go to the Organizations section and do the following:
- Click Add.
- Select one or more organizations.
- Click Add.
- Go to the Roles section and do the following:
- Click Add.
- Find the Salesforce Commerce API category and select the Salesforce Commerce API.
- Click Add.
- Click the filter button.
- Select an organization.
- Enter the name for each instance you want to access with the API client.
- Select each instance and click Add.
- In the Allowed Scopes field, enter the authenticated access scopes provided in the Prerequisites section.
- NOTE: You must enter each scope in a separate line.
- In the Token Endpoint Auth Method drop-down menu, select client_secret_post.
- In the Access Token Format drop-down menu, select JWT.
- Click Save.
- Make a note of the new API Client ID. You will need it to configure Fivetran.
- Go to Administration > Site Development > Salesforce Commerce API Settings.
- Make a note of the Organization ID and Short Code. You will need them to configure Fivetran.
- Go to Administration > Sites > Manage Sites.
- Make a note of the Site ID. You will need it to configure Fivetran.
- Go to Administration > Sites > Customer Lists.
- Make a note of the Customer List ID. You will need it to configure Fivetran.
- OPTIONAL: Create Open Commerce API client (You must create a new API client to sync tables supported through Open Commerce API (OCAPI). A client ID used for Salesforce Commerce APIs (SCAPI) cannot be used for making OCAPI calls.)
- On the left navigation menu, click API Client.
- In the API Clients page, do the following:
- Click Add API Client.
- Enter a Display Name for the API Client.
- Enter your Password and then Confirm Password for the new client.
- Make a note of the password (client secret). You will need it to configure Fivetran.
- Go to the Organizations section and do the following:
- Click Add.
- Select one or more organizations.
- Click Add.
- Skip the Roles section.
- In the Token Endpoint Auth Method drop-down menu, select client_secret_post.
- In the Access Token Format drop-down menu, select JWT.
- Click Save.
- Make a note of the new API Client ID. You will need it to configure Fivetran.
- Go to Administration > Site Development > Open Commerce API Settings.
- In the Select Type drop-down menu, select Data.
- In the Select Context drop-down menu, select Global.
- In the editor, add the code to assign permissions to your API client to access to your required OCAPI endpoints.
- Go to Administration > Sites > Manage Sites.
- Go to Manage Business Manager site.
- Go to Hostnames tab and Make a note of Hostname. You will need it to configure Fivetran.
- Go to Administration > Site Development > Custom Object Types.
- Make a note of the object types you need to sync through Fivetran.
- Go back to Fivetran
- In the connector setup form, enter the Destination schema name of your choice.
- Enter the Client ID and Client Secret you created.
- Enter your Organization ID and the Short Code you found.
- Enter the Site ID you found.
- Enter the Customer List ID you found.
- To sync Open commerce API endpoints, set the Sync OCAPI Endpoints toggle to ON, and specify the following:
- Enter the OCAPI Client ID and OCAPI Client Secret you created.
- Enter the OCAPI Hostname you found.
- (Optional) Enter a comma-separated List of Custom Object Types you found.
- Click Save & Test. Fivetran will take it from here and sync your Salesforce Commerce Cloud data.
Updated 8 months ago
