MuleSoft Accelerator for Salesforce B2C Commerce Cloud icon

MuleSoft Accelerator for Salesforce B2C Commerce Cloud

(2 reviews)

Use case 5 - Customer sync

Overview

The following use case is covered:

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

This use case demonstrates how to sync customer profile data that is created or updated in B2C Commerce 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 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
  • Service Cloud
  • SAP

Setup instructions

B2C Commerce configuration

Setup B2C Commerce with the custom cartridge to invoke the B2C Commerce 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 CommerceService 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 Solutions
Published onJun 29, 2021
Asset overview

Asset versions for 1.5.x

Asset versions
VersionActions
1.5.1
1.5.0

Categories

Industry Vertical
RetailNo values left to add
Products
SalesforceSAPServiceNowNo values left to add
Accelerator
B2C Commerce CloudService CloudNo values left to add

Tags