Friday, September 17, 2021

Tips for passing Accredited B2B Commerce Lightning Administrator Certification

 

Motivation behind this


Recently 7th Sept,2021 I have passed B2B Commerce Lightning Administrator and Developer accredited certifications. Last year I have cleared both these certifications which are on classic version which Salesforce has retired from mid of August,2021.

Salesforce has provided training on B2B Commerce through partner enablement program and both of the courses available on PLC (Partner Learning Camp).

Right now there is 50% discount going on and it is available on $75 + tax which motivates me to appear on those certifications and happy to see me passed.





Exam Outline


Content: 60 multiple-choice / multiple-select questions
Time allotted to complete the exam: 120 minutes
Passing score: 75%
Registration fee: USD 150 plus applicable taxes as required per local law
Delivery options: Proctored exam delivered in an online proctored environment that can be accessed through Partner Learning Camp
References: No hard-copy or online materials may be referenced during the exam

Topics


Topics

Weighting

Salesforce B2B Commerce Basics

15%

Salesforce B2B Commerce App

20%

Storefront Deployment

20%

Product Organization and Administration

15%

Content Integration

7%

Storefront Management

17%

Advanced Topics

6%


Preparation


B2B Commerce is built on Experience Cloud, CMS, Flow and Lightning Web Components (Customization). So configuration knowledge of those are kind of pre-requisites.

There are hands on trainings are available for partners which are crucial to learn and pass this exam.

From PLC, Register for "B2B Commerce Lightning Experience foundations for Administrators" and there are 6 courses in it.

There are B2B Commerce related trailhead modules to be followed:

I have written blog posts which will definitely help to pass Admin.


Understand this data model very well


Understand the following administration very well




Few Important points to cover for exam


  • License Type needed for Buyer, Buyer Manager and Account Switcher Users and their permissions
  • Use of Buyer Group, Entitlements, Products, Price Books
  • Store Administrations
  • Relationship among objects as depicted in the data model above
  • Record sharing
  • Basics of Flow
  • Checkout flow
  • Configurations on Experience Cloud
  • All the sharing settings of the objects configured
  • Loading data for Store creation
  • Supported Languages
  • Multi-currency
Happy Learning!

Saturday, September 11, 2021

Configuring B2B Commerce Lightning Store: Trailblazer Goodies Store

 

Motivation behind this


I have been exploring B2B Commerce Lightning and thought of building the store using all the gifts/swags received/achieved from Salesforce.

I have attended sessions from Partner Learning Camp and extended the ideas like this way.

During this journey, Abdul Molla has helped me a lot which drives to write for all the Trailblazers who are interested to explore B2B Commerce Lex.

Basics to know


B2B Commerce Lightning has been developed on Experience Cloud, CMS, Flows, Lightning Web Components. So better to get familiar on those. 

Before start configuring, following trailhead module will help to understand basics.



Possible End Results


The Storefront will look like this below and all the snaps are my own:


Refer the video on Store experience including checkout flow at the end of the post.


Steps to follow


We will go step by step as I have shown in following diagram.



Pre-requisite


Before starting to configure the storefront, complete all the steps following my previous blog Administering B2B Commerce Lightning at Developer Edition


High Level B2B Commerce Lightning Experience


I have extended the data model as depicted in B2B Commerce on Lightning Experience Data Model and created an experience model as follows.

For easy reference, the color coding of this model and flow steps have been kept as same as possible.


Let's get started.

1. Create Product, Price Book and Price Book Entries


a) In the Product object, add Trailblazer Goodies as Product Family picklist value

b) Create a new Product as follows and assign it to Trailblazer Goodies Product Family. For Example: Einstein. You can open Product screen from Commerce App -> Product Workspace


c) Create Price Book called US Price Book and Add Products into it.


2. Load Content into CMS


a) Go to Salesforce CMS App and Create CMS Workspace naming Trailblazer Goodies Store and follow the next steps as default.




In the language tab, select English and make that default. Final Review Screen as follows:





b) 
Add Content in the Trailblazer Goodies Store. Upload from your desktop, save draft and publish it.



c) Map Product and Content

From Commerce App -> Product Workspace -> Choose a Product -> Product Detail Page -> Click on Media Tab



Click on Add Image and choose as below:

d) Create few more product either manually or through data loader, associate them with price book and assign media content. Here is an example:



3. Create a Store


From Commerce App -> Create a Store -> Choose B2B Commerce Template and click on Get Started  


Name it as Trailblazer Goodies Store


It will take few moments to create and finally, we will be landed to Store Home Page.



4. Let's map Community and CMS Channel

a) Click on Experience Builder

Go to Security & Privacy
  • Make Security Level to Relax CSP
  • Add trusted site if anything is needed.

b) Assign Permission Set

Go to Administration -> Members -> Assign Account Switcher User, Buyer and Buyer Manager Permission Sets.


c) Assign Role to your user


d) Assign Trailblazer Goodies Store as Channel. Follow following steps:
  •  Switch to Salesforce CMS and click on CMS Workspace
  •  Open Trailblazer Goodies Store record
  • Click on Channels button
  • Add a Channel

5. Create Catalog and Categories

a) From Commerce App -> Catalogs
b) Create a new Catalog naming Trailblazer Goodies
c) Create a Category naming Plush Pals


Similar way we can create categories like: Travel and Drinkware.

6. Add Products to Categories

a) From Commerce App -> Product Workspace -> Product Detail -> Categories -> Assign


b) Similarly, add rest of Products to respective Categories. It will look like this:


7. Configure Account, Contacts and Buyer Groups

a) Create a new Account naming Trailblazer Account and Enable it as Buyer


Find the following details on Account Detail Page:


 
b) Create a Contact under Trailblazer Account, let’s say John Smith and provide your email address.
 c) Few more things to do on Contact as follows:
  • Edit Contact Page Layout and add Enable Customer User action

  • From John Smith Contact record, click on Enable Customer User to create a user
  • During user creation choose Customer Community Plus as license
d) Create Buyer Group from Commerce App and name it as US Buyer Group
e) From Buyer Group Related List, assign Account as Buyer Group Member



8. Associate Catalog, Buyer Group and Price Book with Store

a) From Commerce App -> Stores -> Trailblazer Goodies Store
b) Assign Catalog i.e. Trailblazer Goodies with this Store
c) Assign Buyer Group i.e. US Buyer Group with this Store
d) Assign Price Book i.e. US Price Book with this Store



9. Define Commerce Entitlement Policies

 a) Create Entitlement Policy from Commerce App naming US Buyer Entitlement Policy as follows.


Be sure to choose View Products and View prices in catalog.

b) Assign Products and Buyer Groups to this Entitlement Policy from the Related List.


10. Build Search Index

a) From Store -> Build Your Search Index -> Go to Search (refer the screen at point no. 8)
b) Add Product Family as Filter


c) From Search Index Summary -> click on Rebuild Index

Note: If you add products, categories, price be sure to Rebuild Index to reflect them on Storefront.


11. Customizing Experience Builder Components

a) Customizing Product Detail Page

Open Builder, select Product Detail Page and drag Product Fields (short) on the layout and add desired fields


b) Add Product Detail Card on the layout.
c) Configure Checkout Flow

Choose checkout page -> select the Checkout Flow component -> Edit Flow in flow Builder



Choose Checkout Flow Template and Save as “Trailblazer Checkout Flow” and from advanced -> Change How to run flow to “System Context with Sharing – Enforces Record-level Access”.


12. Register Reference Implementation Classes

a) Take following 4 classes from github
  • B2BDeliverySample.apxc
  • B2BCheckInventorySample.apxc
  • B2BTaxSample.apxc
  • B2BPricingSample.apxc
b) Add Remote Site Settings for https://b2b-commerce-test.herokuapp.com
c) Register classes:
  • API version will be 52.0 (check the version from your org)
  • Replace the code as follows taking help from this documentation
  • Run the code at Developer Console in Execute Anonymous mode

apexClassName

registeredProviderType

registeredDevName

B2BPricingSample

Price

COMPUTE_PRICE

B2BCheckInventorySample   

Inventory

CHECK_INVENTORY

B2BDeliverySample

Shipment

COMPUTE_SHIPPING

B2BTaxSample

Tax

COMPUTE_TAXES


  • Confirm to check if those are registered running the following SOQL query
SELECT Id, ExternalServiceProviderId, ExternalServiceProviderType, DeveloperName FROM RegisteredExternalService WHERE DeveloperName in ('COMPUTE_PRICE','CHECK_INVENTORY','COMPUTE_SHIPPING','COMPUTE_TAXES')

Query Results as follows:


d) Map Store Integration Services

 From Commerce App -> Store -> Administration Tile

 Link all of classes as Registered External Services.

Section

Mapping

Store Inventory

CHECK_INVENTORY

Shipping Calculation

COMPUTE_SHIPPING

Tax Calculation

COMPUTE_TAXES

Price Check

COMPUTE_PRICE


After registering it will look like this:


13. Activate Store

Finally, from Commerce App -> Store -> Administration Tile -> Store activation.


We are done on setting up with all configurations.

Let's Test this!


Open Contact records (John Smit) and from drop down action click on Log in to Experience as User.

Follow this video to view the Store, different categories and complete a checkout flow.


Happy Learning and thanks to read this!

Further Reading



Friday, September 10, 2021

Administering B2B Commerce Lightning at Developer Edition

 

Motivation behind this


I have been exploring B2B Commerce Lightning since last year through Partner Enablement program designed by Salesforce. Right now, Salesforce is enabling partners through Partner Learning Camp and there are many courses available including B2B Commerce Admin and Developer.
Recently, B2B Commerce license is available at any Developer Edition which drives to me to build a website.

For purpose of building this website, I have taken few snaps of the goodies which I have received/achieved from Salesforce which can be a get start to build this.

During this journey, Abdul Molla has helped me a lot which drives to write for all the Trailblazers who are interested to learn B2B Commerce.

Lets' get started.

Basics to know


B2B Commerce Lightning has been developed on Experience Cloud, CMS, Flows, Lightning Web Components. So better to get familiar on those. 

Before start configuring, following trailhead module will help to understand basics.

Steps to follow


We will go step by step as I have shown in following diagram.


For easy reference, color of each heading below will match the color of symbol of above picture.

1. Sign up a Developer Edition


    Follow this link

2. Enable Experience Cloud


    a) From Setup Ã  Digital Experiences, enable Experience Cloud and create a domain.


   b) Choose - Allow using standard external profiles for self-registration, user creation, and login.





3. Enable Commerce


    From Setup, you can reach here to enable commerce. This is heart of B2B Commerce.



4. Enable Order Preferences


    From Setup, reach Order Settings and choose Enable Enhanced Commerce Orders. Choose other 2 options as shown in picture.


4. Enable & Activate CMS


    a) Edit System Administrator profile and choose Salesforce CMS at Custom App Settings section.


 b) Go to Tab Setting Section and make following tabs as Default On for these 4 CMS items:
  • CMS Home
  • CMS Channels
  • CMS Experiences
  • CMS Workspaces
c) Make following tabs to Default On too.
  • Commerce Setup
  • Buyer Group Price Books 
  • Buyer Groups
  • Catalogs
  • Categories
  • Entitlement Policies 
  • Guest Buyer Profile
  • Price Adjustment Schedules
  • Pricing Workspace
  • Product Workspace
  • Store Price Books
  • Stores
  • Order Summaries
d) Verify CMS

From App Launcher open Salesforce CMS App and verify tabs.


5. Configure Sharing Settings


Sharing Settings, make Default Internal Access and Default External Access to be Public Read Only for:


  • Catalog
  • Electronic Media Group
  • Order Delivery Method

6. Configure Product Object


Create following Custom fields in Product and assign it to Customer Community Plus User.
  • Height
  • Width
  • Depth
  • Weight
  • Diameter
  • Additional Details

7. Update Page Layouts


a) Product Page Layout
  • Product SKU field to be added in layout
  • Categories and Commerce Entitlement Policies to be added in related list
b) Order Summary Page Layout

Keep only Start Reorder action at at Salesforce Mobile and Lightning Experience Actions section and remove others.


c) Order Delivery Group Summary Page Layout

Add Product Name as column in Order Product Summaries Related List


d) Account Page Layout

  • Add Community Members and Contact Point Address as Related List
  • Enable as Buyer actions to be added in Salesforce Mobile and Lightning Experience Actions


8. App Builder Settings - Account Record Page


Choose any Account record and edit Page, drag Buyer Account component to the page layout.


9. Field Level Security for Pricebook and PriceBookEntry


a) Create ExternalId field (ExternalId__c) at PriceBook object and make is visible to Customer Community Plus user

b) Navigate to Standard Price Book record and update ExternalId = standardpricebook and Active=true
(You can create a new List View to see list of price book records)



c) Create ExternalId field (ExternalId__c) at PriceBookEntry object and make is visible to Customer Community Plus user

This is needed if we load data through dataloader and if pricing is available from outside of Salesforce.

10. Permission Sets for Buyers, Buyer Managers and Account Switchers


a) Buyer Permission Set

  • Create permission set name as Buyer and assign Customer Community Plus license


  • Assign Read access to following objects:
    • Accounts
    • Buyer Accounts
    • Catalogs
    • Categories
    • Electronic Media Groups
    • Locations
    • Order Delivery Methods
    • Order Summaries
    • Price Books
    • Products
    • Product Category Products
    • Stores
    • Store Catalogs
Here is an example:
  • Assign Full CRUD access to following objects:
    • Carts
    • Contact Point Addresses
    • Orders
    • Wishlists
  • For Contact Point Address object, assign Read permission to all fields.


  • Assign System Permissions
    • Commerce User
    • Run Flows

b) Buyer Manager Permission Set
  • Clone Buyer permission set and name it as Buyer Manager.
  • From System Permissions, choose B2B Commerce Super User
  • From App Permissions, choose Delegated External User Administrator
b) Account Switcher Permission Set
  • Create a new permission set called Account Switcher and assign Customer Community Plus license
  • In the System Permission section, choose Account Switcher User

11. Finalization of Commerce Setup


a) Enable Data Translation and Multi-Currency from Company Information


b) Field Accessibility - 

  • From Setup -> Field Accessibility -> Select Order object -> View By Fields -> Choose Sales Store
  • Select System Administrator profile to make it visible

  • Commerce Setup from App Launcher and verify this

  • Install 3 out-of-box reports clicking on Commerce Setup
    • Average Order Value
    • Orders By Date
    • Total Orders

That's all. Thanks for your patience to complete.

In the next post, we will Configure the Store and complete checkout process which will look like this:


Happy Learning!