b2b Setup Guide
b2b Setup Guide
@salesforcedocs
Last updated: March 11, 2022
© Copyright 2000–2022 salesforce.com, inc. All rights reserved. Salesforce is a registered trademark of salesforce.com, inc.,
as are other names and marks. Other marks appearing herein may be trademarks of their respective owners.
CONTENTS
Get your org ready for Salesforce B2B Commerce on Lightning Experience.
1
Set Up Salesforce for B2B Commerce on Lightning Experience Enable Digital Experiences for Commerce
Important: You can’t change the domain name after you save it.
4. Click Save.
2
Set Up Salesforce for B2B Commerce on Lightning Experience Enable Commerce Features
Warning: Enabling Digital Experiences automatically extends access to external members. Records previously accessible to
Roles and Subordinates are available to Roles, Internal and Portal Subordinates. Opening up access to site and portal subordinates
could expose your Salesforce data to external users.
Use the Convert External User Access Wizard to help ensure that records or folders aren’t shared with external users. For more
information, see Use the Convert External User Access Wizard
Important: After you enable this option, you can’t disable it.
3
Set Up Salesforce for B2B Commerce on Lightning Experience Enable Person Accounts
4. Click Save.
Note: In some cases, when you add B2B2C Commerce to an existing B2B Commerce and Salesforce Order Management
implementation, Person Accounts is already enabled. If so, skip these steps.
1. Create the Business Account record type.
a. From Setup, in the Quick Find box, enter Object Manager, and then select Account.
b. Click Record Types.
c. Click New.
d. For Record Type Label, enter a name (for example, Business Account).
You don’t have to use Business Account as the name. However, keep in mind that this record type is used for businesses, not
shoppers. After you create a Business Account, you can associate it with multiple contacts (individual employees working for
the business).
e. Click Next.
f. Select a page layout, and click Save.
4
Set Up Salesforce for B2B Commerce on Lightning Experience Configure Sharing Settings
If you don’t see the Person Account record type, contact Salesforce Support.
g. Click Save.
5
Set Up Salesforce for B2B Commerce on Lightning Experience Customize Commerce Object Page Layouts
Electronic Media Group External Public Read Only Public Read Only
Order Delivery Method External Public Read Only Public Read Only
4. Click Save.
6
Set Up Salesforce for B2B Commerce on Lightning Experience Customize the Product Page Layout
4. In the Product Layout section, select Related Lists, and drag Categories and Commerce Entitlement Policies to the Related Lists
section.
5. Click Save.
7
Set Up Salesforce for B2B Commerce on Lightning Experience Add Buyer Information to the Account Details Page
5. Click Save.
c. Click Save.
8
Set Up Salesforce for B2B Commerce on Lightning Experience Permission Sets for Buyers, Buyer Managers, and Account
Switchers
• Categories
• CMS Channels
• CMS Experiences
• CMS Home
• CMS Workspaces
• Commerce Setup
• Entitlement Policies
• Guest Buyer Profile
• Order Delivery Methods
• Orders
• Order Summaries
• Price Adjustment Schedules
• Price Books
• Pricing Workspace
• Promotion Workspace (B2B Commerce for Lightning Experience only)
• Products
• Product Workspace
• Store Price Books
• Stores
d. Click Save.
Use the Commerce Business User Profile when creating internal users. When creating a commerce admin user, assign the Commerce
Admin permission set. When creating a merchandiser user, assign the Merchandiser permission set.
Note: Both the Commerce Admin permission set and the Merchandiser permission set allow access to buyer groups. Users who
have access to buyer groups also have read access to all related buyer group members.
Important: To allow self-registration on stores to work correctly, make sure all internal users who create stores are assigned to a
role.
Note: To specify which internal users can access which stores, contact your account executive.
Note: Users assigned to an account switcher permission set based on the buyer manager permission set can create, edit, and
delete addresses on accounts they have access to. Users assigned to an account switcher permission set based on the buyer
permission set have only read access to addresses on the other accounts.
9
Set Up Salesforce for B2B Commerce on Lightning Experience Customize the Commerce App
Buyer users require a Customer Community license or a license with a higher level of privileges. Buyer managers and account switchers
require a Customer Community Plus license or a license with a higher level of privileges.
If you don’t want to use the preconfigured buyer and buyer manager permission sets, we recommend that you clone the preconfigured
sets and customize as necessary.
Important: Salesforce recommends that you set the Default External Access sharing setting in Organization-Wide Defaults to
Private on Product records for all commerce use cases. If the Default External Access sharing setting isn’t set to Private, and you
have multiple stores or both stores and other Experience Cloud sites, it’s possible for authenticated users to use a SOQL query and
discover all your products regardless of any entitlements you’ve set up. However, they can’t see prices nor purchase products. For
the most secure setup for external users, don’t grant access to products and other commerce objects at the profile level. Instead,
grant access to objects through a permission set that is only assigned to buyers and buyer managers.
10
Set Up Salesforce for B2B Commerce on Lightning Experience Multifactor Authentication
Multifactor Authentication
Multifactor authentication (MFA) increases protection for user accounts against common threats like phishing attacks, credential stuffing,
and account takeovers. As a Salesforce admin, amplify your security by requiring an extra level of authentication at login. You can also
require MFA when a user performs certain actions, such as attempting to view reports or access a connected app.
For information about setting up MFA, see Multi-Factor Authentication.
11
Set Up Salesforce for B2B Commerce on Lightning Experience Prevent Third-Party Attacks on Your Store
USER PERMISSIONS
Configure a Custom Domain and CDN
To modify session security
Every B2C store, except B2C stores created in Developer Edition orgs, must be associated with a settings:
custom domain that is configured to use the Salesforce content delivery network (CDN). A custom • Customize Application
domain and corresponding CDN are optional for B2B stores, but we recommend them for B2B
stores that require broad access and high security.
The custom domain is a subdomain of a top-level domain. For example, if your top-level domain is example.com, your subdomain is
something like store.example.com. Your top-level domain is hosted externally from Salesforce. Your top-level domain and custom
domains must be registered with a third party (for example, GoDaddy or Verisign). After you complete the necessary DNS entries, you
can configure the custom domains and the CDN.
Before adding a custom domain for your store, create DNS entries with your third-party registrar. Create two CNAME entries—one for
the custom domain, and one for a cert. Both entries specify a name and a target value.
For the first entry, the name is the first portion of your custom domain (without the top-level domain). For example, store instead of
store.example.com. The target value has this form:
[custom_domain].[organization_id].live.siteforce.com.
For the cert entry, you prepend _acme-challenge. to the name specified in your first entry (for example,
_acme-challenge.store). The target value has this form:
_acme-challenge.[custom_domain].[organization_id].live.siteforce.com.
For example, if your custom domain name is store.example.com and your 18-character org ID is 00dxx0000001ggxeay,
the name in the first entry is store. The target value is
store.example.com.00dxx0000001ggxeay.live.siteforce.com.
In the second entry for the cert, the name is _acme-challenge.store. The target value is
_acme-challenge.store.example.com.00dxx0000001ggxeay.live.siteforce.com.
1. From Setup, in the Quick Find box, enter Domains, and then select Domains.
2. Click Add a Domain.
3. For Domain Name, enter the name of your custom domain.
4. Select Salesforce serves the domain over HTTPS using a Salesforce content delivery network (CDN) partner and shared
or single HTTPS certificate.
5. Select Single certificate for content delivery network (CDN).
6. Click Save.
12
Set Up Salesforce for B2B Commerce on Lightning Experience Install Commerce Reports
For the changes to take effect, activate the domain after its provisioning status is Awaiting Activation. If you’re notified to enroll in CDN,
activate your domain. When setting up HTTPS or renaming a domain, the domain’s live traffic continues to use its previously provisioned
HTTPS option and domain name until it’s activated.
Tip: Your custom domain can remain in the provisioning phase for 6–24 hours. To shorten the provisioning phase, you can try
creating a TXT record on the top-level domain and register it in advance. If you create the TXT record, you don’t have to wait as
long for domain validation, and the provisioning phase typically goes faster.
13
Set Up Salesforce for B2B Commerce on Lightning Experience Install Commerce Reports
e. Click Save.
2. Ensure that the Sales Store field is visible to the System Administrator and Commerce Business User and is added to the Order Layout
page layout.
a. Click View Field Accessibility, and select Sales Store from the dropdown menu.
b. Next to System Administrator, click Hidden and verify that Visible is selected next to the System Administrator profile.
c. Select Add the Sales Store field to the Order Layout page layout.
d. Click Save.
e. Click View Field Accessibility, and select Sales Store from the dropdown menu.
f. Next to Commerce Business User, click Hidden and verify that Visible is selected next to the Commerce Business User profiles.
g. Click Save.
3. Ensure that the Activated picklist value is available for Order Status.
a. Select Fields & Relationships > Status.
b. Under Order Status Picklist Values, confirm that Activated is shown. If the Activated field doesn’t exist, click New and follow the
UI prompts to create it.
4. If you haven’t done so already, set the Commerce Setup tab to be on by default.
14
Set Up Salesforce for B2B Commerce on Lightning Experience Next Steps to Configure B2B Commerce on Lightning
Experience
d. Click Save.
5. From the Commerce App navigation menu, select Commerce Setup from the dropdown.
6. On the Add Reporting quick link tile, click Install Reports.
7. Next to the reports listed on the page, click Install. The Commerce report folder is created when a Commerce report is installed.
8. Install all Commerce reports listed on the Commerce Reports page.
9. To view your installed reports, on the Commerce App navigation menu, select Reports.
Tip: If you have multiple stores, you can make a report easier to read by adding a filter or column based on Sales Store: Name.
To set up Salesforce Omnichannel Inventory for use with B2B Commerce on Lightning Experience, follow the instructions in the Salesforce
Omnichannel Inventory Implementation Guide
15
Set Up Salesforce for B2B Commerce on Lightning Experience Next Steps to Configure B2B Commerce on Lightning
Experience
For links to training and other resources, see B2B Commerce on Lightning Experience Resources.
16