Get to Know the B2B Commerce Data Model

Learning Objectives

After completing this unit, you’ll be able to:

  • List some of the complexities of B2B commerce.
  • Describe the key concepts of the B2B Commerce data model.
  • List some standard objects included with Lightning B2B Commerce.

What Exactly Is B2B Commerce Anyway?

Business-to-business (B2B) commerce is a world far removed from the ecommerce experiences most folks are used to. B2B commerce involves a multitude of complex relationships and the movement of bulk goods. Purchases often require negotiated, account-specific pricing and terms, and are often done on behalf of someone else.  

Of course, this is the Cliff’s Notes version of what B2B commerce involves. Take a look at the Salesforce B2B Commerce Basics module to get more details about this type of commerce. 

The Salesforce B2B Commerce application helps you manage the complexity of those day-to-day business interactions on a large scale. And it all starts with the B2B Commerce data model. In this module you see how the various objects of B2B Commerce on Lightning Experience fit together, and give you the flexibility you need for your business. 

A Store by Any Other Name

The term store means many things to many people: an actual brick-and-mortar store with merchandise, an online store, or...well, OK, those are the two best-known instances of store that we can think of. But today we’d like to add to that list... Presenting the term store as the sun in the solar system that is Lightning B2B Commerce. 

Why talk in riddles when we can show you what we mean? Behold the data model for Lightning B2B Commerce on Lightning Experience.

Data model of B2B Commerce, with interconnected objects all somehow connected to the store.

Yes it’s vast and it’s complex. But that’s where this module comes in. Here you learn the various relationships between objects, and how to make the data model work for you. 

Before we take a deep dive into the world of stores, let’s do a quick review of how data is organized in Salesforce. 

Let’s start with the term data model. A data model is more or less what it sounds like. It’s a way to model what database tables look like in a way that makes sense to humans. Think of a database table as a spreadsheet. Here’s what some data from an org with B2B Commerce could look like in a spreadsheet format. 

Store Name
Description
Default Language
Supported Languages
Default Currency
Supported Currencies
Ursa Major Solar - Italia
Italian B2B store
Italian Italian; English
Euro
Euro; Dollar

The entire table is an object, such as the store object here. Each column is a field. And each row is a specific record, in this case, Ursa Major Solar - Italia

Of course, tables of information aren’t represented as such in the Salesforce app. What you see instead are things like record pages, which show you information in the page fields. 

The Lay of the Land

Before we delve much farther into the land of data models, let’s see what data we have to work with in B2B Commerce. When you start using B2B Commerce on Lightning Experience, you get a series of standard objects in your org. Here are some.

  • Store
  • Catalog
  • Category
  • Entitlement Policy
  • Product
  • Price Book
  • Price Book Entry
  • Buyer Account
  • Buyer Group
  • Buyer Group Member

Later on, we take a look at how these objects relate to one another in the data model for Ursa Major Solar.

Say Hello to Ursa Major Solar

Ursa Major Solar, Inc., is a Southwest-based supplier of solar components and systems that sells its products to retailers, contractors, and resellers via B2B Commerce stores. They've gone from a local player to a regional one, and recently opened a sales and distribution center in Italy. Competitively-priced solar components are their bread-and-butter, but turn-key solar solutions are the fastest growing (and most profitable) part of their business. B2B Commerce stores let Ursa Major Solar organize its wares and personalize pricing for different retail buyers. 

Next, let’s see how the store object is central to everything B2B-related for Ursa Major Solar. 

Resources

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities