Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

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

          Search all of Salesforce Help
          Extend the ProductDiscoveryContext Context Definition

          Extend the ProductDiscoveryContext Context Definition

          To add the nodes, attributes, mappings, and tags for your qualification procedure, extend the ProductDiscoveryContext context definition.

          Required Editions

          View supported products and editions.
          User Permissions Needed
          To extend context definitions: Context Service Admin

          Product Catalog Management provides a Product Discovery Context Definition template for you. However, you can't edit this out-of-the-box template. Instead you must extend the context definition to make a version that you can customize.

          Note
          Note

          Extend context definitions instead of cloning them. When you extend a context definition, you can use the Sync option to easily upgrade the extended definitions to their latest version. Extending a context definition also ensures that all the mandatory mappings are preserved.

          Before you extend the built-in context definition, check to see if there's an extended context definition you can use. Some organizations already have a customizable context definition called BrowseProductsCtxDefinition. If so, you can simply customize the existing context definition.

          To extend the Product Discovery Context Definition, follow these instructions:

          1. From Setup, in the Quick Find box, enter Context Service, and then select Context Definitions.
          2. On the Standard Definitions tab, click Show actions corresponding to ProductDiscoveryContext, and then select Extend.
          3. Enter a name, ensure that ProductDiscoveryContext is selected in the Inherited From field, and click Next.
          4. If you don’t need to map the attributes in the CategoryProduct node to Product object fields, use the default mapping. To map the attributes in the CategoryProduct node to Product object fields, create a custom mapping.
            1. On the Map Data tab, click Add Mapping.
            2. Enter a name and description.
            3. Ensure that the Automatic Salesforce object mapping and the Mark as Default checkboxes are deselected.
            4. On the Mapping Intent Details page, ensure that Association, Hydration, Persistence, and Translation are selected.
            5. Click Map.
            6. Map CategoryProduct attributes to Product fields.
            7. Save the changes.
            8. On the Map Data tab, from the Context Definition dropdown of the new mapping, select Input Mapping.
            9. Click Generate All Mappings.
            10. In the Generate all mappings? window, click Retain and Generate.
            11. Save the changes.
            12. Click The Context Definitions button. corresponding to ProductDiscoveryMapping, and then click Edit.
            13. Deselect Mark as Default.
            14. Click Context Definitions corresponding to the new mapping, and then click Edit.
            15. Select Mark as Default.
          5. Add the nodes and attributes that are required for qualification or disqualification of products and categories.
            See Create Context Definitions.
            Important
            Important To use object mapping, make sure that the node has an “id” attribute and a corresponding unique tag.
          6. Map the nodes and attributes to the corresponding entities and fields.
          7. Activate the context definition.
           
          Loading
          Salesforce Help | Article