This minor version has been deprecated
MuleSoft Accelerator for Salesforce B2C Commerce Cloud icon

MuleSoft Accelerator for Salesforce B2C Commerce Cloud

(1 review)

Use case 5 - Customer sync

Overview

The following use case is covered:

  • Customer profile sync (B2C Commerce Cloud → Service Cloud & B2C Commerce Cloud → SAP)

This use case demonstrates how to sync customer profile data that is created or updated in B2C Commerce Cloud with Service Cloud and an external ERP like SAP.

High-level architecture

sfc-b2c-com-customer-sync-api-led-archictecture.png

Workflow

  1. The user creates or updates their profile in B2C Commerce Cloud and saves it
  2. The custom cartridge invokes a Mule API with the customer profile data
  3. The customer profile is created or updated in Service Cloud as well as SAP

Sequence diagram

sfc-b2c-com-customer-sync-seq-diagram.png

Systems involved

  • B2C Commerce Cloud
  • Service Cloud
  • SAP

Setup instructions

B2C Commerce Cloud configuration

Setup B2C Commerce Cloud with the custom cartridge to invoke the Commerce Cloud Experience API when a customer profile is created or updated. The custom cartridge needs to be properly installed in the active site by a qualified B2C administrator or developer.

SAP Configuration

Follow the Custom BAPI setup instructions.

Service Cloud configuration

Create the following custom fields in the Contact object:

  • CC_Customer_Number____c
  • External_Customer_ID____c
  • External_Customer_ListID____c
  • External_Customer_SiteID____c

Mule projects

Components & configurations

Customer data elements

B2C Commerce CloudService CloudSAP
First NameFirstNameIV_FIRSTNAME
Last NameLastNameIV_LASTNAME
EmailEmailIV_EMAIL
Address 1OtherStreetIV_ADDRESS1
Address 2OtherStreetIV_ADDRESS2
CityOtherCityIV_CITY
StateOtherStateIV_STATE
CountryOtherCountryIV_COUNTRY
Postal CodeOtherPostalCodeIV_POSTALCODE
Contact PhonePhoneIV_TELNO
CustomerIdExternal_Customer_ID__c(Custom Field)IV_CC_CUSTOMER
CustomerNumberCC_Customer_Number__c(CustomField)N/A
CustomerListIdExternal_Customer_ListID__c(CustomField)N/A
SiteIdExternal_Customer_SiteID__c(CustomField)N/A
ContactIdIdN/A

Reviews

TypeCustom
OrganizationMuleSoft
Published by
MuleSoft Organization
Published onOct 30, 2020
Asset overview

Asset versions for 1.3.x

Asset versions
StatusVersionActions
1.3.0