Pages

Sunday, September 19, 2021

Tips for passing Accredited B2B Commerce Lightning Developer 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).

One most interesting point is 50% of the exam coverage is on Lightning Web Components which really helps to validate the knowledge and drives me to appear for this exam.

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

Checkout Flow Development

10%

Reference Implementations

15%

Basic Lightning Web Component Development

20%

Advanced Lightning Web Component Development

30%

Data Management

15%

Error Handling and Diagnostics

10%


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 on Lightning Experience Foundations for Developers" and there are 2 courses in it.

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


Few Important points to cover for exam


  • Checkout flow and how that can be customized
  • Reference implementations for Tax, Price, Inventory, Shipment and Payment services.
  • From Lightning Web Components, my cheatsheet has good coverages.
    • Naming conversion of files
    • Different file types
    • How LWC can be used in Aura Component
    • What are different types of decorators
    • Communicating from Parent to Child
    • Communicating from Child to Parent
    • Raising Custom Event
    • Ways to access variables of .js controller in html files
    • Authorize an org
  • Sending email alert via Flow
  • Platform Events how that can be published and subscribed
  • Creating cancel order action from Order Summary Detail
  • Creating custom Product Detail display using LWC
  • Use of Commerce Diagnostic Custom Object

That's all what I know.

Further Reading

 

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