Getting Started With Coveo for Salesforce B2B Commerce

Pro and Enterprise editions only

Coveo for Salesforce B2B Commerce allows you to grow your revenue by making B2B buying experiences relevant and personal, with Enterprise-grade AI-powered search and product recommendations technology.

This section explains how to index the necessary objects and how to create a Coveo-powered search page within B2B Commerce.

You should contact Coveo Support to get started with Coveo for B2B Commerce.

Prerequisites

To take advantage of Coveo for Salesforce B2B Commerce in your Salesforce Organization, you must:

  1. Install Salesforce B2B Commerce in your Salesforce Organization.

  2. Set up a Salesforce Storefront in your Salesforce Organization.

    When you reach the Load Storefront Data from a Static Resource step, if you have your own set of data or you plan to use your own set, choose the Minimum data required to start building a storefront option.

  3. Install the Coveo for Salesforce Application.

  4. Create a Coveo Commerce Catalog.

Step 1: Configure Your B2B Commerce Sources

Configuring Fields

If you’re not operating on a scratch Coveo Cloud organization, you may need to individually update already existing fields. You can use the Coveo Swagger Field API Update call to update the impacted fields.

In order to properly configure your B2B Commerce sources, you must first configure your fields:

  1. Access the Coveo Cloud Platform API Swagger, and then, in the top right drop-down menu, select Field.

  2. Click Show/Hide, and then select the Create fields Post operation.

  3. In the top right of the Create fields Post operation, click the red icon, and then click Authorize.

  4. In the Parameters section, under Value, enter the following configuration:

    [
     {
         "name": "sfsystemmodstamp",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfname",
         "type": "STRING",
         "sort": true
     },
     {
         "name": "sfisdeleted",
         "type": "STRING"
     },
     {
         "name": "sfrecordtypeid",
         "type": "STRING"
     },
     {
         "name": "sflastvieweddate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sflastmodifieddate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfrecordtypename",
         "type": "STRING"
     },
     {
         "name": "sfid",
         "type": "STRING"
     },
     {
         "name": "sfrecordtypedevelopername",
         "type": "STRING"
     },
     {
         "name": "sflastactivitydate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sflastmodifiedbyid",
         "type": "STRING"
     },
     {
         "name": "sfcreateddate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfcreatedbyid",
         "type": "STRING"
     },
     {
         "name": "sflastreferenceddate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfproductname",
         "type": "STRING"
     },
     {
         "name": "sfproductid",
         "type": "STRING"
     },
     {
         "name": "sfcategoryname",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";",
         "sort": true
     },
     {
         "name": "sfmediaenabled",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";",
         "sort": true
     },
     {
         "name": "sfmediastartdate",
         "type": "DATE",
         "sort": true
     },
     {
         "name": "sfmediaenddate",
         "type": "DATE",
         "sort": true
     },
     {
         "name": "sfmedialocale",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfmediafilepath",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfmediauri",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfmediadesc",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfmediasequence",
         "type": "DOUBLE"
     },
     {
         "name": "sfmediasource",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfmediatype",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfmediastaticresourcename",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfinventoryqtyavailable",
         "type": "DOUBLE"
     },
     {
         "name": "sfinventorystatus",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfinventorylocationcode",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfinventoryavailabilitymessage",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfprimaryattribute",
         "type": "STRING"
     },
     {
         "name": "sfsecondaryattribute",
         "type": "STRING"
     },
     {
         "name": "sftertiaryattribute",
         "type": "STRING"
     },
     {
         "name": "sfprimaryattributedisplayname",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfsecondaryattributedisplayname",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sftertiaryattributedisplayname",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfsupersedeproductid",
         "type": "STRING"
     },
     {
         "name": "sfsupersedeproductname",
         "type": "STRING"
     },
     {
         "name": "sfsupersedeproductaltname",
         "type": "STRING"
     },
     {
         "name": "sfsupersedeproductproductid",
         "type": "STRING"
     },
     {
         "name": "sfspecvalues",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfspecdisplaynames",
         "type": "STRING",
         "multiValueFacet": true,
         "multiValueFacetTokenizers": ";"
     },
     {
         "name": "sfalternatename",
         "type": "STRING"
     },
     {
         "name": "sfavailabilitymessage",
         "type": "STRING"
     },
     {
         "name": "sfavailablesubscriptionfrequencies",
         "type": "STRING"
     },
     {
         "name": "sfaveragerating",
         "type": "DOUBLE"
     },
     {
         "name": "sfcoolerpakflag",
         "type": "STRING"
     },
     {
         "name": "sfdryiceflag",
         "type": "STRING"
     },
     {
         "name": "sfdryiceweight",
         "type": "DOUBLE"
     },
     {
         "name": "sfemploymentlevel",
         "type": "STRING"
     },
     {
         "name": "sfenddate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfgroundflag",
         "type": "STRING"
     },
     {
         "name": "sfhazardousflag",
         "type": "STRING"
     },
     {
         "name": "sfhazardousoutside48flag",
         "type": "STRING"
     },
     {
         "name": "sfindustry",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfinventorytype",
         "type": "STRING"
     },
     {
         "name": "sfissubscriptionautorenewal",
         "type": "STRING"
     },
     {
         "name": "sfissubscriptionavailable",
         "type": "STRING"
     },
     {
         "name": "sfissubscriptiononly",
         "type": "STRING"
     },
     {
         "name": "sfleadtime",
         "type": "DOUBLE"
     },
     {
         "name": "sflongdescrt",
         "type": "STRING"
     },
     {
         "name": "sfnumberofreviews",
         "type": "DOUBLE"
     },
     {
         "name": "sfovernightflag",
         "type": "STRING"
     },
     {
         "name": "sfportalsiteurl",
         "type": "STRING"
     },
     {
         "name": "sfproductindexstatus",
         "type": "STRING"
     },
     {
         "name": "sfproductstatus",
         "type": "STRING"
     },
     {
         "name": "sfproducttype",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfproductweight",
         "type": "DOUBLE"
     },
     {
         "name": "sfquantityperunit",
         "type": "DOUBLE"
     },
     {
         "name": "sfreviewflag",
         "type": "STRING"
     },
     {
         "name": "sfseodescription",
         "type": "STRING"
     },
     {
         "name": "sfseoid",
         "type": "STRING"
     },
     {
         "name": "sfseokeywords",
         "type": "STRING"
     },
     {
         "name": "sfseotitle",
         "type": "STRING"
     },
     {
         "name": "sfsku",
         "type": "STRING"
     },
     {
         "name": "sfsequence",
         "type": "DOUBLE"
     },
     {
         "name": "sfserviceflag",
         "type": "STRING"
     },
     {
         "name": "sfshipseparately",
         "type": "STRING"
     },
     {
         "name": "sfshippedindividually",
         "type": "STRING"
     },
     {
         "name": "sfshippingweight",
         "type": "DOUBLE"
     },
     {
         "name": "sfstartdate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfstorefront",
         "type": "STRING"
     },
     {
         "name": "sfsubscriptionduration",
         "type": "STRING"
     },
     {
         "name": "sfsubscriptionfrequency",
         "type": "STRING"
     },
     {
         "name": "sftaxrateid",
         "type": "STRING"
     },
     {
         "name": "sftaxable",
         "type": "STRING"
     },
     {
         "name": "sftotalrating",
         "type": "DOUBLE"
     },
     {
         "name": "sfunitofmeasurelabel",
         "type": "STRING"
     },
     {
         "name": "sfunitofmeasure",
         "type": "STRING"
     },
     {
         "name": "sfprice",
         "type": "DOUBLE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfpricelistid",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfpricelistenabled",
         "type": "STRING"
     },
     {
         "name": "sfpricelistenddate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfpriceliststartdate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfpriceliststorefront",
         "type": "STRING"
     },
     {
         "name": "sfadjustmentamount",
         "type": "DOUBLE"
     },
     {
         "name": "sfadjustmentreason",
         "type": "STRING"
     },
     {
         "name": "sfbuyercompanyname",
         "type": "STRING"
     },
     {
         "name": "sfbuyeremail",
         "type": "STRING"
     },
     {
         "name": "sfbuyerfirstname",
         "type": "STRING"
     },
     {
         "name": "sfbuyerlastname",
         "type": "STRING"
     },
     {
         "name": "sfbuyermobilephone",
         "type": "STRING"
     },
     {
         "name": "sfbuyerphone",
         "type": "STRING"
     },
     {
         "name": "sfccemailaddress",
         "type": "STRING"
     },
     {
         "name": "sfcontractid",
         "type": "STRING"
     },
     {
         "name": "sfcurrencyisocode",
         "type": "STRING"
     },
     {
         "name": "sfeffectiveaccountid",
         "type": "STRING"
     },
     {
         "name": "sfencryptedid",
         "type": "STRING"
     },
     {
         "name": "sfextcarrier",
         "type": "STRING"
     },
     {
         "name": "sfextshipto",
         "type": "STRING"
     },
     {
         "name": "sfextshiptrackno",
         "type": "STRING"
     },
     {
         "name": "sfisanonymous",
         "type": "STRING"
     },
     {
         "name": "sfnote",
         "type": "STRING"
     },
     {
         "name": "sforderdate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sforderid",
         "type": "STRING"
     },
     {
         "name": "sfordername",
         "type": "STRING"
     },
     {
         "name": "sfordernumber",
         "type": "STRING"
     },
     {
         "name": "sforderseller",
         "type": "STRING"
     },
     {
         "name": "sforderstatus",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfponumber",
         "type": "STRING"
     },
     {
         "name": "sfpaymentmethod",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfrequestdate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfshipamount",
         "type": "DOUBLE"
     },
     {
         "name": "sfshipcomplete",
         "type": "STRING"
     },
     {
         "name": "sfshipdiscountamount",
         "type": "DOUBLE"
     },
     {
         "name": "sfshipmethod",
         "type": "STRING"
     },
     {
         "name": "sfshipstructure",
         "type": "STRING"
     },
     {
         "name": "sfskiptax",
         "type": "STRING"
     },
     {
         "name": "sfsplitprocessed",
         "type": "STRING"
     },
     {
         "name": "sfsubtotalamount",
         "type": "DOUBLE"
     },
     {
         "name": "sftaxamount",
         "type": "DOUBLE"
     },
     {
         "name": "sftaxexemptflag",
         "type": "STRING"
     },
     {
         "name": "sftaxsubtotalamount",
         "type": "DOUBLE"
     },
     {
         "name": "sftotalamount",
         "type": "DOUBLE"
     },
     {
         "name": "sftotaldiscount",
         "type": "DOUBLE"
     },
     {
         "name": "sftotalsurcharge",
         "type": "DOUBLE"
     },
     {
         "name": "sfverifyexemptionflag",
         "type": "STRING"
     },
     {
         "name": "sfaccountid",
         "type": "STRING"
     },
     {
         "name": "sfcontactid",
         "type": "STRING"
     },
     {
         "name": "sfshiptoaddressfirstline",
         "type": "STRING"
     },
     {
         "name": "sfshiptoaddresssecondline",
         "type": "STRING"
     },
     {
         "name": "sfshiptoaddressthirdline",
         "type": "STRING"
     },
     {
         "name": "sfshiptocity",
         "type": "STRING"
     },
     {
         "name": "sfshiptocompanyname",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfshiptocountryisocode",
         "type": "STRING"
     },
     {
         "name": "sfshiptocountry",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfshiptodaytimephone",
         "type": "STRING"
     },
     {
         "name": "sfshiptoemail",
         "type": "STRING"
     },
     {
         "name": "sfshiptofirstname",
         "type": "STRING"
     },
     {
         "name": "sfshiptohomephone",
         "type": "STRING"
     },
     {
         "name": "sfshiptolastname",
         "type": "STRING"
     },
     {
         "name": "sfshiptomailstop",
         "type": "STRING"
     },
     {
         "name": "sfshiptomiddlename",
         "type": "STRING"
     },
     {
         "name": "sfshiptopartnerid",
         "type": "STRING"
     },
     {
         "name": "sfshiptopostalcode",
         "type": "STRING"
     },
     {
         "name": "sfshiptoshippingcomments",
         "type": "STRING"
     },
     {
         "name": "sfshiptostateisocode",
         "type": "STRING"
     },
     {
         "name": "sfshiptostate",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfsplitparentorderid",
         "type": "STRING"
     },
     {
         "name": "sfsplitparentordername",
         "type": "STRING"
     },
     {
         "name": "sfuserid",
         "type": "STRING"
     },
     {
         "name": "sfusername",
         "type": "STRING"
     },
     {
         "name": "sfordercurrencyisocode",
         "type": "STRING"
     },
     {
         "name": "sfabsolutediscount",
         "type": "DOUBLE"
     },
     {
         "name": "sfcategory",
         "type": "STRING",
         "facet": true
     },
     {
         "name": "sfcomments",
         "type": "STRING"
     },
     {
         "name": "sfcoupon",
         "type": "STRING"
     },
     {
         "name": "sfdisplayproduct",
         "type": "STRING"
     },
     {
         "name": "sfextname",
         "type": "STRING"
     },
     {
         "name": "sfextsku",
         "type": "STRING"
     },
     {
         "name": "sfissubscription",
         "type": "STRING"
     },
     {
         "name": "sfitemlabel",
         "type": "STRING"
     },
     {
         "name": "sfitemstatus",
         "type": "STRING"
     },
     {
         "name": "sfitemtotal",
         "type": "DOUBLE"
     },
     {
         "name": "sfnextsubscriptiondate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sforderitemgroup",
         "type": "STRING"
     },
     {
         "name": "sforderitemid",
         "type": "STRING"
     },
     {
         "name": "sforderitemstatus",
         "type": "STRING"
     },
     {
         "name": "sforderlinetype",
         "type": "STRING"
     },
     {
         "name": "sforder",
         "type": "STRING"
     },
     {
         "name": "sforiginalitemprice",
         "type": "DOUBLE"
     },
     {
         "name": "sforiginalquantity",
         "type": "DOUBLE"
     },
     {
         "name": "sfparentorderitem",
         "type": "STRING"
     },
     {
         "name": "sfparentproduct",
         "type": "STRING"
     },
     {
         "name": "sfpercentdiscount",
         "type": "DOUBLE"
     },
     {
         "name": "sfpricingmodifiertypes",
         "type": "STRING"
     },
     {
         "name": "sfpricingtype",
         "type": "STRING"
     },
     {
         "name": "sfprimaryattr",
         "type": "STRING"
     },
     {
         "name": "sfproduct",
         "type": "STRING"
     },
     {
         "name": "sfquantity",
         "type": "DOUBLE"
     },
     {
         "name": "sfrecurringpricesubamt",
         "type": "DOUBLE"
     },
     {
         "name": "sfrecurringprice",
         "type": "DOUBLE"
     },
     {
         "name": "sfsecondaryattr",
         "type": "STRING"
     },
     {
         "name": "sfselectedattr",
         "type": "STRING"
     },
     {
         "name": "sfseller",
         "type": "STRING"
     },
     {
         "name": "sfsplitsource",
         "type": "STRING"
     },
     {
         "name": "sfstoreid",
         "type": "STRING"
     },
     {
         "name": "sfsubamount",
         "type": "DOUBLE"
     },
     {
         "name": "sfsubprodterm",
         "type": "STRING"
     },
     {
         "name": "sfsubscriptionid",
         "type": "STRING"
     },
     {
         "name": "sfsubscriptionautorenewal",
         "type": "STRING"
     },
     {
         "name": "sfsubscriptionenddate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfsubscriptionstartdate",
         "type": "DATE",
         "facet": true,
         "sort": true
     },
     {
         "name": "sfsubscriptionstatus",
         "type": "STRING"
     },
     {
         "name": "sftertiaryattr",
         "type": "STRING"
     }
    ]
    
  5. Click Try it out!.

  6. Check the Fields page to ensure the fields are properly created in your Coveo Cloud organization.

You can also individually create the required fields using the Fields page of the Coveo Cloud Administration Console (see Adding and Managing Fields).

Create the Products and PriceListItems Source

  1. In the Sources page, click Add Source

  2. Add a Salesforce source linked to your Salesforce organization with the B2B Commerce content with the following configuration:

    • Source name: choose a significant name. This source will index your Products and related information, such as the PriceList

    • Schema version: choose the Current version in the drop-down menu.

    • Objects: unselect Service Cloud.

  3. Click Add Source.

  4. In the Sources page, click the source you just created, and then in the Action bar, click More and select Edit JSON.

  5. In the Edit a Source JSON Configuration panel that appears, select the Mappings tab.

  6. In the JSON configuration box, replace the JSON configuration with the following:

    
     [
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "objecttype",
             "extractionMethod": "LITERAL",
             "content": "Entitlement"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "sfpriceliststorefront",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Pricelist__r.ccrz__Storefront__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "sfpriceliststartdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Pricelist__r.ccrz__StartDate__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "sfpricelistenddate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Pricelist__r.ccrz__EndDate__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "sfpricelistid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Pricelist__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "objecttypelabel",
             "extractionMethod": "LITERAL",
             "content": "Entitlement"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "sfprice",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Price__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "sfpricelistenabled",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Pricelist__r.ccrz__Enabled__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "sfproductid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_PriceListItem__c",
             "fieldName": "objecttypelabelplural",
             "extractionMethod": "LITERAL",
             "content": "Entitlements"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfunitofmeasurelabel",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__UnitOfMeasureLabel__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfissubscriptionavailable",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Is_Subscription_Available__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sftertiaryattribute",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TertiaryAttr__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfportalsiteurl",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PortalSiteURL__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfunitofmeasure",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__UnitOfMeasure__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsequence",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Sequence__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfquantityperunit",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Quantityperunit__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sflongdescrt",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__LongDescRT__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sftotalrating",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TotalRating__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediaenabled",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__Enabled__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "objecttype",
             "extractionMethod": "LITERAL",
             "content": "Product"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfshortdescrt",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShortDescRT__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfproductid",
             "extractionMethod": "METADATA",
             "content": "%[Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfinventoryqtyavailable",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Inventory_Items__r.ccrz__QtyAvailable__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfspecdisplaynames",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Specs__r.ccrz__Spec__r.ccrz__DisplayName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfinventorystatus",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Inventory_Items__r.ccrz__Status__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediasequence",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__Sequence__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfproductweight",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ProductWeight__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfcoolerpakflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__CoolerpakFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfshipseparately",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipSeparately__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfhazardousflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__HazardousFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfinventorylocationcode",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Inventory_Items__r.ccrz__InventoryLocationCode__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfproductstatus",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ProductStatus__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediatype",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__MediaType__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sftertiaryattributedisplayname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TertiaryAttr__r.ccrz__DisplayName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediafilepath",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__FilePath__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsubscriptionfrequency",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_Frequency__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "objecttypelabel",
             "extractionMethod": "LITERAL",
             "content": "Product"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfhazardousoutside48flag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__HazardousOutside48Flag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfprimaryattributedisplayname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PrimaryAttr__r.ccrz__DisplayName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "body",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SEODescription__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfovernightflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OvernightFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfseotitle",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SEOTitle__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfaveragerating",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AverageRating__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfseodescription",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SEODescription__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfindustry",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Industry__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfdryiceweight",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__DryiceWeight__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfcategoryname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Categories__r.ccrz__Category__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfproductname",
             "extractionMethod": "METADATA",
             "content": "%[Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsubscriptionduration",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_Duration__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfproducttype",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ProductType__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsupersedeproductid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SupersedeProduct__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "objecttypelabelplural",
             "extractionMethod": "LITERAL",
             "content": "Products"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfstorefront",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Storefront__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfreviewflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ReviewFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfseoid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SEOId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsecondaryattributedisplayname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SecondaryAttr__r.ccrz__DisplayName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfseokeywords",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SEOKeywords__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediasource",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__ProductMediaSource__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfavailabilitymessage",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AvailabilityMessage__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsku",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SKU__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmedialocale",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__Locale__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediastartdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__StartDate__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfavailablesubscriptionfrequencies",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Available_Subscription_Frequencies__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfinventorytype",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__InventoryType__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfspecvalues",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Specs__r.ccrz__SpecValue__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfnumberofreviews",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__NumberOfReviews__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfinventoryavailabilitymessage",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Inventory_Items__r.ccrz__AvailabilityMessageRT__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sftaxable",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Taxable__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfserviceflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ServiceFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfprimaryattribute",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PrimaryAttr__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfshippingweight",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShippingWeight__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfgroundflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__GroundFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsupersedeproductname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SupersedeProduct__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfshippedindividually",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShippedIndividually__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfleadtime",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__LeadTime__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediastaticresourcename",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__StaticResourceName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sftaxrateid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TaxRateId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfissubscriptionautorenewal",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Is_Subscription_Auto_Renewal__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfproductindexstatus",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ProductIndexStatus__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediaenddate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__EndDate__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfalternatename",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AlternateName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsecondaryattribute",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SecondaryAttr__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediauri",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__URI__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfmediadesc",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__E_ProductMedias__r.ccrz__ProductDescription__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsupersedeproductproductid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SupersedeProduct__r.ccrz__ProductId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfsupersedeproductaltname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SupersedeProduct__r.ccrz__AlternateName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfissubscriptiononly",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Is_Subscription_Only__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfemploymentlevel",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Employment_Level__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Product__c",
             "fieldName": "sfdryiceflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__DryiceFlag__c]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfsystemmodstamp",
             "extractionMethod": "METADATA",
             "content": "%[SystemModstamp]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastactivitydate",
             "extractionMethod": "METADATA",
             "content": "%[LastActivityDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfcreatedbyid",
             "extractionMethod": "METADATA",
             "content": "%[CreatedBy.Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastvieweddate",
             "extractionMethod": "METADATA",
             "content": "%[LastViewedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfenddate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__EndDate__c]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfcreateddate",
             "extractionMethod": "METADATA",
             "content": "%[CreatedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastreferenceddate",
             "extractionMethod": "METADATA",
             "content": "%[LastReferencedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfid",
             "extractionMethod": "METADATA",
             "content": "%[Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfname",
             "extractionMethod": "METADATA",
             "content": "%[Name]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfstartdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__StartDate__c]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastmodifieddate",
             "extractionMethod": "METADATA",
             "content": "%[LastModifiedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfrecordtypeid",
             "extractionMethod": "METADATA",
             "content": "%[RecordType.Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastmodifiedbyid",
             "extractionMethod": "METADATA",
             "content": "%[LastModifiedBy.Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfrecordtypename",
             "extractionMethod": "METADATA",
             "content": "%[RecordType.Name]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfisdeleted",
             "extractionMethod": "METADATA",
             "content": "%[IsDeleted]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfrecordtypedevelopername",
             "extractionMethod": "METADATA",
             "content": "%[RecordType.DeveloperName]"
         }
     ]
    
  7. Still in the Edit a Source JSON Configuration panel, select the Objects tab.

  8. In the JSON configuration box, replace the JSON configuration with the following:

    {
     "sensitive": false,
     "extendedData": {
         "serializationType": "SALESFORCE",
         "Query": [
         {
             "ObjectName": "ccrz__E_PriceListItem__c",
             "Fields": {
               "string": [
                 "Id",
                 "IsDeleted",
                 "LastModifiedDate",
                 "SystemModstamp",
                 "ccrz__EndDate__c",
                 "ccrz__Price__c",
                 "ccrz__StartDate__c"
               ]
             },
             "ParentRelationships": {
               "ParentRelationship": [
                 {
                   "RelationshipName": "CreatedBy",
                   "Fields": {
                     "string": [
                       "Id"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "LastModifiedBy",
                   "Fields": {
                     "string": [
                       "Id"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__Pricelist__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "ccrz__Enabled__c",
                       "ccrz__EndDate__c",
                       "ccrz__StartDate__c",
                       "ccrz__Storefront__c"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__Product__r",
                   "Fields": {
                     "string": [
                       "Id"
                     ]
                   }
                 }
               ]
             }
           },
           {
             "ObjectName": "ccrz__E_Product__c",
             "Fields": {
               "string": [
                 "CreatedById",
                 "CreatedDate",
                 "Id",
                 "IsDeleted",
                 "LastActivityDate",
                 "LastModifiedById",
                 "LastModifiedDate",
                 "LastReferencedDate",
                 "LastViewedDate",
                 "Name",
                 "OwnerId",
                 "RecordTypeId",
                 "SystemModstamp",
                 "ccrz__AlternateName__c",
                 "ccrz__AvailabilityMessage__c",
                 "ccrz__Available_Subscription_Frequencies__c",
                 "ccrz__AverageRating__c",
                 "ccrz__CoolerpakFlag__c",
                 "ccrz__DryiceFlag__c",
                 "ccrz__DryiceWeight__c",
                 "ccrz__Employment_Level__c",
                 "ccrz__EndDate__c",
                 "ccrz__GroundFlag__c",
                 "ccrz__HazardousFlag__c",
                 "ccrz__HazardousOutside48Flag__c",
                 "ccrz__Industry__c",
                 "ccrz__InventoryType__c",
                 "ccrz__Is_Subscription_Auto_Renewal__c",
                 "ccrz__Is_Subscription_Available__c",
                 "ccrz__Is_Subscription_Only__c",
                 "ccrz__LeadTime__c",
                 "ccrz__LongDescRT__c",
                 "ccrz__NumberOfReviews__c",
                 "ccrz__OvernightFlag__c",
                 "ccrz__PortalSiteURL__c",
                 "ccrz__ProductId__c",
                 "ccrz__ProductIndexStatus__c",
                 "ccrz__ProductStatus__c",
                 "ccrz__ProductType__c",
                 "ccrz__ProductWeight__c",
                 "ccrz__Quantityperunit__c",
                 "ccrz__ReviewFlag__c",
                 "ccrz__SEODescription__c",
                 "ccrz__SEOId__c",
                 "ccrz__SEOKeywords__c",
                 "ccrz__SEOTitle__c",
                 "ccrz__SKU__c",
                 "ccrz__Sequence__c",
                 "ccrz__ServiceFlag__c",
                 "ccrz__ShipSeparately__c",
                 "ccrz__ShippedIndividually__c",
                 "ccrz__ShippingWeight__c",
                 "ccrz__ShortDescRT__c",
                 "ccrz__StartDate__c",
                 "ccrz__Storefront__c",
                 "ccrz__Subscription_Duration__c",
                 "ccrz__Subscription_Frequency__c",
                 "ccrz__TaxRateId__c",
                 "ccrz__Taxable__c",
                 "ccrz__TotalRating__c",
                 "ccrz__UnitOfMeasureLabel__c",
                 "ccrz__UnitOfMeasure__c"
               ]
             },
             "ParentRelationships": {
               "ParentRelationship": [
                 {
                   "RelationshipName": "CreatedBy",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "LastModifiedBy",
                    "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "Owner",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "RecordType",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__ParentProduct__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__PrimaryAttr__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name",
                       "ccrz__DisplayName__c"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__SecondaryAttr__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name",
                       "ccrz__DisplayName__c"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__TertiaryAttr__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name",
                       "ccrz__DisplayName__c"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__SupersedeProduct__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name",
                       "ccrz__AlternateName__c",
                       "ccrz__ProductId__c"
                     ]
                   }
                 }
               ]
             },
             "ChildRelationships": {
               "ChildRelationship": [
                 {
                     "RelationshipName": "ccrz__E_ProductMedias__r",
                     "Fields": {
                       "string": [
                         "ccrz__Enabled__c",
                         "ccrz__EndDate__c",
                         "ccrz__FilePath__c",
                         "ccrz__Locale__c",
                         "ccrz__MediaType__c",
                         "ccrz__ProductDescription__c",
                         "ccrz__ProductMediaSource__c",
                         "ccrz__Sequence__c",
                         "ccrz__StaticResourceName__c",
                         "ccrz__StartDate__c",
                         "ccrz__URI__c"
                       ]
                     }
                   },
                   {
                     "RelationshipName": "ccrz__Product_Categories__r",
                     "Fields": {
                       "string": [
                         "ccrz__StartDate__c",
                         "ccrz__EndDate__c"
                     ]
                   },
                   "ParentRelationships": {
                     "ParentRelationship": [
                       {
                         "RelationshipName": "ccrz__Category__r",
                         "Fields": {
                           "string": [
                             "Name"
                           ]
                         }
                       }
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__Product_Inventory_Items__r",
                   "Fields": {
                     "string": [
                       "ccrz__AvailabilityMessage__c",
                       "ccrz__QtyAvailable__c",
                       "ccrz__Status__c",
                       "ccrz__InventoryLocationCode__c",
                       "ccrz__AvailabilityMessageRT__c"
                     ]
                   }
                 },
                 {
                     "RelationshipName": "ccrz__Product_Specs__r",
                     "Fields": {
                       "string": [
                         "ccrz__SpecValue__c"
                     ]
                   },
                   "ParentRelationships": {
                     "ParentRelationship": [
                       {
                         "RelationshipName": "ccrz__Spec__r",
                         "Fields": {
                           "string": [
                             "ccrz__DisplayName__c"
                           ]
                         }
                       }
                     ]
                   }
                 }
               ]
             }
           }
         ]
       }
     }
    
  9. Click Save and Rebuild Source.

(Optional) Create the Orders and Orderitems Source

  1. In the Sources page, click Add Source

  2. Add a Salesforce source linked to your Salesforce organization with the B2B Commerce content with the following configuration:

    • Source name: choose a significant name. This source will index your Products and related information, such as the PriceList

    • Schema version: choose the Current version in the drop-down menu.

    • Objects: unselect Service Cloud.

  3. Click Add Source.

  4. In the Sources page, click the source you just created, and then in the Action bar, click More and select Edit JSON.

  5. In the Edit a Source JSON Configuration panel that appears, select the Mappings tab.

  6. In the JSON configuration box, replace the JSON configuration with the following:

     [
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfunitofmeasure",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__UnitOfMeasure__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfbuyermobilephone",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__BuyerMobilePhone__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfccemailaddress",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__CCEmailAddress__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforderitemid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderItemId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfproductname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Name__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfabsolutediscount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AbsoluteDiscount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sforderid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfnote",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Note__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "objecttypelabel",
             "extractionMethod": "LITERAL",
             "content": "Ordered Product"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfcurrencyisocode",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__CurrencyISOCode__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfissubscription",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Is_Subscription__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptostate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__State__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptofirstname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__FirstName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfextshiptrackno",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ExtShipTrackNo__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfcomments",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Comments__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfsplitprocessed",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SplitProcessed__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptodaytimephone",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__DaytimePhone__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfusername",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__User__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfparentproduct",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ParentProduct__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfuserid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__User__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfstoreid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__StoreId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "objecttypelabelplural",
             "extractionMethod": "LITERAL",
             "content": "Orders"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfaccountid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Account__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfbuyerphone",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__BuyerPhone__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfpaymentmethod",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PaymentMethod__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptoshippingcomments",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__ShippingComments__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sforderid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sftotalamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TotalAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfcontactid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Contact__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubscriptionstartdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_Start_Date__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforiginalquantity",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OriginalQuantity__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfbuyerlastname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__BuyerLastName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptocompanyname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__CompanyName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfordername",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptoaddressthirdline",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__AddressThirdline__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sftaxexemptflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TaxExemptFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "foldingparent",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfadjustmentamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AdjustmentAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sftotaldiscount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TotalDiscount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfrequestdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__RequestDate__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubscriptionautorenewal",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_Auto_Renewal__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfpricingmodifiertypes",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PricingModifierTypes__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshipcomplete",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipComplete__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sforderseller",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderSeller__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfextcarrier",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ExtCarrier__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfbuyercompanyname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__BuyerCompanyName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sftotalsurcharge",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TotalSurcharge__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfitemstatus",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ItemStatus__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfprice",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Price__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfsplitparentorderid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SplitParentOrder__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptostateisocode",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__StateISOCode__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfcoupon",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Coupon__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfitemlabel",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ItemLabel__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfeffectiveaccountid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__EffectiveAccountID__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforiginalitemprice",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OriginalItemPrice__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubscriptionenddate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_End_Date__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptomailstop",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__MailStop__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sftaxsubtotalamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TaxSubTotalAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SubAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfordername",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "objecttypelabelplural",
             "extractionMethod": "LITERAL",
             "content": "Ordered Products"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfparentorderitem",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ParentOrderItem__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sftaxamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TaxAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshipstructure",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipStructure__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfordernumber",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderNumber__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfproducttype",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ProductType__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfordername",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptocountryisocode",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__CountryISOCode__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptocity",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__City__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfquantity",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Quantity__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubprodterm",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SubProdTerm__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "foldingparent",
             "extractionMethod": "METADATA",
             "content": "%[Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsplitsource",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SplitSource__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sforderdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderDate__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubscriptionfrequency",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_Frequency__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubscriptionstatus",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_Status__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "objecttypelabel",
             "extractionMethod": "LITERAL",
             "content": "Order"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptoemail",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__Email__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfstorefront",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Storefront__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptoaddresssecondline",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__AddressSecondline__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfskiptax",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SkipTax__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfordercurrencyisocode",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__r.ccrz__CurrencyISOCode__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "title",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product_Name__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptolastname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__LastName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfavailabilitymessage",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AvailabilityMessage__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfextsku",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ExtSKU__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfnextsubscriptiondate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Next_Subscription_Date__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfrecurringpricesubamt",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__RecurringPriceSubAmt__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfpricingtype",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PricingType__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfisanonymous",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__IsAnonymous__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfencryptedid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__EncryptedId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfdisplayproduct",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__DisplayProduct__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubscriptionduration",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Subscription_Duration__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfpercentdiscount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PercentDiscount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfrecurringprice",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__RecurringPrice__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfextname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ExtName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforderlinetype",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderLineType__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfextshipto",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ExtShipTo__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforder",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptocountry",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__Country__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptomiddlename",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__MiddleName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfselectedattr",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SelectedAttr__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptopostalcode",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__PostalCode__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptohomephone",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__HomePhone__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfcontractid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ContractId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptopartnerid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__Partner_Id__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfbuyerfirstname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__BuyerFirstName__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsubscriptionid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SubscriptionId__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "foldingcollection",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "objecttype",
             "extractionMethod": "LITERAL",
             "content": "Ordered Product"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshiptoaddressfirstline",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipTo__r.ccrz__AddressFirstline__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfadjustmentamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AdjustmentAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfponumber",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PONumber__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfseller",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Seller__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfbuyeremail",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__BuyerEmail__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfprimaryattr",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__PrimaryAttr__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfadjustmentreason",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__AdjustmentReason__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "foldingcollection",
             "extractionMethod": "METADATA",
             "content": "%[Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfitemtotal",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ItemTotal__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfcategory",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Category__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfsubtotalamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SubtotalAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfproduct",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Product__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfverifyexemptionflag",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__VerifyExemptionFlag__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfname",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Name__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforderitemstatus",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderItemStatus__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforderid",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__Order__r.Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sforderstatus",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderStatus__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfrequestdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__RequestDate__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshipmethod",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipMethod__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sforderitemgroup",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__OrderItemGroup__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshipdiscountamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipDiscountAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfsplitparentordername",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SplitParentOrder__r.Name]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "objecttype",
             "extractionMethod": "LITERAL",
             "content": "Order"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "foldingchild",
             "extractionMethod": "METADATA",
             "content": "%[Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sfsecondaryattr",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__SecondaryAttr__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "sfshipamount",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__ShipAmount__c]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_Order__c",
             "fieldName": "foldingchild",
             "extractionMethod": "METADATA",
             "content": "%[Id]"
         },
         {
             "kind": "MAPPING",
             "type": "ccrz__E_OrderItem__c",
             "fieldName": "sftertiaryattr",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__TertiaryAttr__c]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfsystemmodstamp",
             "extractionMethod": "METADATA",
             "content": "%[SystemModstamp]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastactivitydate",
             "extractionMethod": "METADATA",
             "content": "%[LastActivityDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfcreatedbyid",
             "extractionMethod": "METADATA",
             "content": "%[CreatedBy.Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastvieweddate",
             "extractionMethod": "METADATA",
             "content": "%[LastViewedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfenddate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__EndDate__c]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfcreateddate",
             "extractionMethod": "METADATA",
             "content": "%[CreatedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastreferenceddate",
             "extractionMethod": "METADATA",
             "content": "%[LastReferencedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfid",
             "extractionMethod": "METADATA",
             "content": "%[Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfname",
             "extractionMethod": "METADATA",
             "content": "%[Name]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfstartdate",
             "extractionMethod": "METADATA",
             "content": "%[ccrz__StartDate__c]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastmodifieddate",
             "extractionMethod": "METADATA",
             "content": "%[LastModifiedDate]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfrecordtypeid",
             "extractionMethod": "METADATA",
             "content": "%[RecordType.Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sflastmodifiedbyid",
             "extractionMethod": "METADATA",
             "content": "%[LastModifiedBy.Id]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfrecordtypename",
             "extractionMethod": "METADATA",
             "content": "%[RecordType.Name]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfisdeleted",
             "extractionMethod": "METADATA",
             "content": "%[IsDeleted]"
         },
         {
             "kind": "COMMON",
             "fieldName": "sfrecordtypedevelopername",
             "extractionMethod": "METADATA",
             "content": "%[RecordType.DeveloperName]"
         }
     ]
    
  7. Still in the Edit a Source JSON Configuration panel, select the Objects tab.

  8. In the JSON configuration box, replace the JSON configuration with the following:

    {
     "sensitive": false,
     "extendedData": {
         "serializationType": "SALESFORCE",
         "Query": [
           {
             "ObjectName": "ccrz__E_OrderItem__c",
             "Fields": {
               "string": [
                 "CreatedById",
                 "CreatedDate",
                 "Id",
                 "IsDeleted",
                 "LastActivityDate",
                 "LastModifiedById",
                 "LastModifiedDate",
                 "Name",
                 "SystemModstamp",
                 "ccrz__AbsoluteDiscount__c",
                 "ccrz__AdjustmentAmount__c",
                 "ccrz__AvailabilityMessage__c",
                 "ccrz__Category__c",
                 "ccrz__Comments__c",
                 "ccrz__Coupon__c",
                 "ccrz__DisplayProduct__c",
                 "ccrz__ExtName__c",
                 "ccrz__ExtSKU__c",
                 "ccrz__Is_Subscription__c",
                 "ccrz__ItemLabel__c",
                 "ccrz__ItemStatus__c",
                 "ccrz__ItemTotal__c",
                 "ccrz__Next_Subscription_Date__c",
                 "ccrz__OrderItemGroup__c",
                 "ccrz__OrderItemId__c",
                 "ccrz__OrderItemStatus__c",
                 "ccrz__OrderLineType__c",
                 "ccrz__Order__c",
                 "ccrz__OriginalItemPrice__c",
                 "ccrz__OriginalQuantity__c",
                 "ccrz__ParentOrderItem__c",
                 "ccrz__ParentProduct__c",
                 "ccrz__PercentDiscount__c",
                 "ccrz__Price__c",
                 "ccrz__PricingModifierTypes__c",
                 "ccrz__PricingType__c",
                 "ccrz__PrimaryAttr__c",
                 "ccrz__ProductType__c",
                 "ccrz__Product_Name__c",
                 "ccrz__Product__c",
                 "ccrz__Quantity__c",
                 "ccrz__RecurringPriceSubAmt__c",
                 "ccrz__RecurringPrice__c",
                 "ccrz__RequestDate__c",
                 "ccrz__SecondaryAttr__c",
                 "ccrz__SelectedAttr__c",
                 "ccrz__Seller__c",
                 "ccrz__SplitSource__c",
                 "ccrz__StoreId__c",
                 "ccrz__SubAmount__c",
                 "ccrz__SubProdTerm__c",
                 "ccrz__SubscriptionId__c",
                 "ccrz__Subscription_Auto_Renewal__c",
                 "ccrz__Subscription_Duration__c",
                 "ccrz__Subscription_End_Date__c",
                 "ccrz__Subscription_Frequency__c",
                 "ccrz__Subscription_Start_Date__c",
                 "ccrz__Subscription_Status__c",
                 "ccrz__TertiaryAttr__c",
                 "ccrz__UnitOfMeasure__c"
               ]
             },
             "ParentRelationships": {
               "ParentRelationship": [
                 {
                   "RelationshipName": "ccrz__Order__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name",
                       "ccrz__CurrencyISOCode__c"
                     ]
                   }
                 }
               ]
             }
           },
           {
             "ObjectName": "ccrz__E_Order__c",
             "Fields": {
               "string": [
                 "CreatedById",
                 "CreatedDate",
                 "Id",
                 "IsDeleted",
                 "LastActivityDate",
                 "LastModifiedById",
                 "LastModifiedDate",
                 "LastReferencedDate",
                 "LastViewedDate",
                 "Name",
                 "OwnerId",
                 "SystemModstamp",
                 "ccrz__AdjustmentAmount__c",
                 "ccrz__AdjustmentReason__c",
                 "ccrz__BuyerCompanyName__c",
                 "ccrz__BuyerEmail__c",
                 "ccrz__BuyerFirstName__c",
                 "ccrz__BuyerLastName__c",
                 "ccrz__BuyerMobilePhone__c",
                 "ccrz__BuyerPhone__c",
                 "ccrz__CCEmailAddress__c",
                 "ccrz__ContractId__c",
                 "ccrz__CurrencyISOCode__c",
                 "ccrz__EffectiveAccountID__c",
                 "ccrz__EncryptedId__c",
                 "ccrz__ExtCarrier__c",
                 "ccrz__ExtShipTo__c",
                 "ccrz__ExtShipTrackNo__c",
                 "ccrz__IsAnonymous__c",
                 "ccrz__Name__c",
                 "ccrz__Note__c",
                 "ccrz__OrderDate__c",
                 "ccrz__OrderId__c",
                 "ccrz__OrderName__c",
                 "ccrz__OrderNumber__c",
                 "ccrz__OrderSeller__c",
                 "ccrz__OrderStatus__c",
                 "ccrz__PONumber__c",
                 "ccrz__PaymentMethod__c",
                 "ccrz__RequestDate__c",
                 "ccrz__ShipAmount__c",
                 "ccrz__ShipComplete__c",
                 "ccrz__ShipDiscountAmount__c",
                 "ccrz__ShipMethod__c",
                 "ccrz__ShipStructure__c",
                 "ccrz__SkipTax__c",
                 "ccrz__SplitProcessed__c",
                 "ccrz__Storefront__c",
                 "ccrz__SubtotalAmount__c",
                 "ccrz__TaxAmount__c",
                 "ccrz__TaxExemptFlag__c",
                 "ccrz__TaxSubTotalAmount__c",
                 "ccrz__TotalAmount__c",
                 "ccrz__TotalDiscount__c",
                 "ccrz__TotalSurcharge__c",
                 "ccrz__VerifyExemptionFlag__c"
               ]
             },
             "ParentRelationships": {
               "ParentRelationship": [
                 {
                   "RelationshipName": "ccrz__Account__r",
                   "Fields": {
                     "string": [
                       "Id"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__Contact__r",
                   "Fields": {
                     "string": [
                       "Id"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__Order__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__ShipTo__r",
                   "Fields": {
                     "string": [
                       "ccrz__AddressFirstline__c",
                       "ccrz__AddressSecondline__c",
                       "ccrz__AddressThirdline__c",
                       "ccrz__City__c",
                       "ccrz__CompanyName__c",
                       "ccrz__CountryISOCode__c",
                       "ccrz__Country__c",
                       "ccrz__DaytimePhone__c",
                       "ccrz__Email__c",
                       "ccrz__FirstName__c",
                       "ccrz__HomePhone__c",
                       "ccrz__LastName__c",
                       "ccrz__MailStop__c",
                       "ccrz__MiddleName__c",
                       "ccrz__Partner_Id__c",
                       "ccrz__PostalCode__c",
                       "ccrz__ShippingComments__c",
                       "ccrz__StateISOCode__c",
                       "ccrz__State__c"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__SplitParentOrder__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 },
                 {
                   "RelationshipName": "ccrz__User__r",
                   "Fields": {
                     "string": [
                       "Id",
                       "Name"
                     ]
                   }
                 }
               ]
             }
           }
         ]
       }
     }
    
  9. Click Save and Rebuild Source.

Step 2: Add the Product Spec Fields

Once you’re done configuring your B2B Commerce source, you should create a new field for each of your product specs.

To find the exact product specs names, you can use this post-conversion extension script to inspect all key/value pairs extracted by the Coveo Cloud indexing pipeline.

  1. Create a new field for each of your product specs.

  2. Create a mapping rule to map each of your fields to the product spec metadata:

    1. Access the “Edit the Mappings of a Source” panel.

    2. In the upper-right corner, click Add, and then select Mapping to access the Apply a Mapping on All Item Types of a Source panel.

    3. In the Apply a Mapping on All Item Types of a Source panel, in the Select a field drop-down menu, select a field you created in step 1.

    4. Under Apply to, click All items (common) or Specific item types to determine to which items the mapping rule should apply.

    5. In the Rules box, input the following mapping rule:

       %[ccrz_Product_Specs__r.ccrz__Spec__r.ccrz__DisplayName__c.[NAME_OF_SPEC].ccrz__SpecValue__c]
      

      Where you replace [NAME_OF_SPEC] with the name of the product spec.

      In step 1, you created a field for the color product spec.

      You then create the following mapping rule to ensure that the field you have created is filled with the proper metadata:

       %[ccrz_Product_Specs__r.ccrz__Spec__r.ccrz__DisplayName__c.color.ccrz__SpecValue__c]
      
    6. Click Apply Mapping.

    7. In the Edit the Mappings of a Source panel, click Save and Rebuild Source to apply the mapping rule to your source.

Step 3: Create a Visualforce Page for Your Salesforce B2B Commerce Storefront Search Page

You must first Create a Visualforce page for your Salesforce B2B Commerce Storefront Search Page:

  1. In Salesforce, under Setup, search for and select Visualforce Pages (Build > Develop > Visualforce Pages).

  2. On the Visualforce Pages page, select New.

  3. Give your new component a Label; the Name should be filled automatically.

  4. In the Visualforce Markup tab, enter the following code:

     <apex:page sidebar="false" showHeader="false" standardStylesheets="false" applyHtmlTag="false">
         <CoveoV2:SearchInterface name="<YOUR_COMMERCE_INTERFACE_PAGE_NAME>" catalog="<YOUR_CATALOG_ID>"></CoveoV2:SearchInterface>
     </apex:page>
    

    Where you replace:

    • <YOUR_COMMERCE_INTERFACE_PAGE_NAME> with the name of your Commerce interface.

    • <YOUR_CATALOG_ID> with the ID of your Coveo Catalog.

  5. Click Save.

  • All attribute and options of the SearchInterface section are mandatory. However, you may want to wait before putting the catalogId if you want to create your search page with more than only products.

  • You may notice that the interface editor toolbox is a bit out of place in your Visualforce community. You can fix the issue by injecting the following CSS:

      <style>
          .toolbox-container > div {
              margin-left: -7em;
          }
      </style>
    

Step 4: Configure a Coveo for Salesforce B2B Commerce Storefront Search Page

  1. Access the Visualforce page you created at the previous step (see View and Edit Visualforce Pages).

  2. On your Visualforce page Page Detail subpage, click Preview.

  3. In the webpage that opens, click Set up a search page to build your Coveo search interface.

  4. Click Create page.

Step 5: Create a “Subscriber Pages” Object

Use this procedure to create your CC Subscriber Page.

Note the value you assigned for the Page Key field as you’ll need it later on.

Step 6: Add the Coveo Searchbox in Your Salesforce B2B Commerce Storefront Search Page

You must create a Visualforce page for your Commerce Search box:

  1. In Salesforce, under Setup, search for and select Visualforce Pages (Build > Develop > Visualforce Pages).

  2. On the Visualforce Pages page, select New.

  3. In the Label box, type SearchBox; the Name should be filled automatically.

  4. In the Visualforce Markup tab, enter the following code:

     <apex:page docType="html-5.0" sidebar="false" showHeader="false" standardStylesheets="false" cache="false" applyHtmlTag="false">
         <CoveoV2:JsSearch
                 catalog="YourCatalogId"
                 stylesheet="CoveoFullSearchNewDesign.css"/>
         <!-- Declare a template containing the CoveoSearchbox -->
         <script id="coveoSearchbox" type="text/template">
         <div id="searchbox" style="z-index:20;min-height:100%;background:white;
     ">
             <div class="CoveoSearchbox" data-enable-query-syntax="true"></div>
         </div>
         </script>
         <script>
         jQuery(function ($) {
             // Inject the template declared before in place of the `.search_form` element that's contained in the productSearchView section.
             CCRZ.uiProperties.productSearchView.desktop.tmpl = 'coveoSearchbox';
             CCRZ.uiProperties.productSearchView.phone.tmpl = 'coveoSearchbox';
             // When the productSearchView section is refreshed, initialize the Searchbox.
             CCRZ.pubSub.once('view:productSearchView:refresh', function (event, args) {
                 var root = document.getElementById('searchbox');
                 if (root) {
                     Coveo.initSearchbox(root,'/DefaultStore/ccrz__CCPage?pageKey=coveo&CoveoStorefront=DefaultStore');
                 }
             });
         });
         </script>
     </apex:page>
    

    Where you replace:

    • YourCatalogId with the ID of your Coveo Catalog.

    • coveo (next to pageKey=) with the page key created in step 5.

    • DefaultStore (next to CoveoStorefront=) with the name of the Storefront in which you want the Coveo Searchbox.

  5. Click Save.

  6. From the CC Admin tab, access your Storefront Configuration Settings, and add your new page as a PageInclude, on Header Include End (see Page Includes and Sample Gross Layout Override).

    Your configurations should look like the followings:

    2925-new-page-setting1

    2925-new-page-setting2

Step 7: Refresh Your Configuration Cache

Once you’re done with the previous steps, you must refresh your configuration cache in order to take advantage of Coveo for B2B Commerce in your Organization.

Recommended Articles