Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Salesforce Order Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Shopper Data with the B2C Commerce Integration

          Shopper Data with the B2C Commerce Integration

          The B2C Commerce integration creates standard accounts and contacts to represent business shoppers or buyers. It identifies a business buyer by the presence of a company name in an order’s billing address. By default, it also creates standard accounts and contacts to represent individual shoppers.

          Required Editions

          View supported editions.

          To represent individual shoppers with person accounts instead, configure the permission set to access Account records. See Configure Access to the Console App ..

          If you’re representing individual shoppers with person accounts, don’t change the names or API names of the two default Account record types. The B2C Integration uses those types to represent shopper accounts.

          By default, the integration identifies an existing shopper record by its name or email address. You can configure it to identify existing shoppers by applying your org’s duplicate and matching rules for Accounts, Contacts, and Person Accounts. For more information, see Manage Duplicate Records.

          The integration can’t look up any encrypted fields on Salesforce objects. Encrypting any of the fields it uses to look up records causes order ingestion to fail. If you want to encrypt the Account Name, Account Person Email, or Contact Email field, then you must implement custom duplicate and matching rules that don’t use any encrypted fields. For more information on encryption restrictions, see General Shield Platform Encryption Considerations.

          When the integration receives order data, it checks the billing address company name value. If the billing address contains a non-null company name, the integration considers the shopper to be a business buyer. Otherwise, it considers the shopper to be an individual. It then proceeds based on the shopper type and the current Person Accounts for Shoppers setting.

          Business Buyer Individual Shopper When Using Standard Accounts Individual Shopper When Using Person Accounts

          If B2C Integration Data Matching Rules is selected, use the org’s matching rules to identify an account or contact that matches the buyer information in the order data. If not selected, search for these records:

          • Account with a name matching the company name in the order data
          • Contact with an email matching the buyer email in the order data

          Associate buyer records with the new order according to the search results.

          Neither found
          Create a standard account and a contact using the order data. Assign the new account to the new contact’s Account field. Associate both new records with the new order.
          Both found
          Associate both existing records with the new order.
          Account found; contact not found
          Create a contact using the order data. Don’t associate the contact’s Account field with the existing account. Associate the existing account and new contact with the new order.
          Account not found; contact found
          Create an account using the order data. Don’t associate the existing contact’s Account field with the new account. Associate the new account and existing contact with the new order.

          If B2C Integration Data Matching Rules is selected, use the org’s matching rules to identify an account or contact that matches the shopper information in the order data. If not selected, search for these records:

          • Account with a name matching the concatenated first name and last name in the order data
          • Contact with an email matching the shopper email in the order data

          Associate shopper records with the new order according to the search results.

          Neither found
          Create a standard account and a contact using the order data. Assign the new account to the new contact’s Account field. Associate both new records with the new order.
          Both found
          Associate the account that has the matching contact record with the new order.
          Account found; contact not found
          Create a contact using the order data. Don’t associate the contact’s Account field with the existing account. Associate the existing account and new contact with the new order.
          Account not found; contact found
          Create an account using the order data. Don’t associate the existing contact’s Account field with the new account. Associate the new account and existing contact with the new order.

          If B2C Integration Data Matching Rules is selected, use the org’s matching rules to identify a person account that matches the shopper information in the order data. If not selected, search for a person account record with a person email matching the shopper email in the order data.

          Person account not found
          Create a person account using the order data. An associated contact is created. Associate the new person account with the new order.
          Person account found
          Associate the matching person account with the new order.

          The integration sets only the Account field on a contact when it creates the account and contact at the same time. If one of the records exists, setting that value without validation can break the integration because contacts can’t have duplicate Accounts and Business Phones. However, you can set the Account field on a contact manually or via customization as long as you check for a duplicate.

          Changing the Person Accounts for Shoppers setting doesn’t affect existing shopper records. However, it can affect whether the integration recognizes existing individual shopper records that were stored when the setting was different. Before you change this setting on a production org, review these considerations:

          Note
          Note If the B2C Integration Data Matching Rules setting is on, this behavior can vary depending on your org’s matching rules.
          Person accounts for Shoppers Result
          On The integration recognizes an individual shopper stored as a person account because it searches for an account by Name and a contact by Email. Thus, it recognizes a person account with a matching Name and a contact with a matching Email, normally the contact associated with the person account.
          Off The integration doesn’t recognize an individual shopper stored as a standard account and contact because it searches only for a person account by Person Name. A standard account doesn’t have a Person Name, and the integration doesn’t search for a contact in this case.
             

          Changing this setting can take up to an hour to take effect.

           
          Loading
          Salesforce Help | Article