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
          Explore a Qualification Rule Example

          Explore a Qualification Rule Example

          Qualification rules can be a complex topic to understand. Let's look at an example to see how the components come together to create a fully functional qualification rule.

          Required Editions

          View supported products and editions.
          User Permissions Needed
          To create and test all qualification rule components:

          Manage Product Catalog

          Context Service Admin

          Rules Engine Designer

          Rules Engine Runtime

          Note
          Note Your Salesforce org may be customized or configured differently from what is described here. If these instructions become difficult to follow, create a promo developer org to use for this example exercise.

          Example Overview

          Qualification rules come in two types: qualification and disqualification. In this example, we'll explore a disqualification rule.

          Consider a company in the United States that sells landscaping and lawn care materials such as tools, grass seed, mulch, fertilizer, and pesticide. In the agricultural industry, many states regulate the use and sale of certain chemicals. One particular product, a pesticide sold as PEST-1X, is not allowed for sale in California due to local environmental laws.

          We'll use the Billing State field as the primary criteria for our qualification rule. If a sales rep creates a quote or order for a customer in California, PEST-1X does not appear as a choice in the Landscaping product catalog.

          Let's explore how to build a qualification rule that satisfies these requirements.

          Summary of Components

          Qualification rules require several technical components. To make keeping track of them easier, refer to this table. Note that the exact component names used here may be different from what's in your org.

          Component Name Component Type
          PEST-1X Product
          Disqualification Record Product Disqualification Object
          BrowseProductsCtxDefinition Product Discovery Context Definition
          ProductDisqualificationDT Product Disqualification Decision Table
          Product Qualification Qualification Rule Procedure

          Create the PEST-1X Product

          Before implementing the qualification rule, let's add a product we can test with the catalog.

          1. Create a Catalog called Landscaping.
          2. Create a Category called Pesticides, and assign it to the Landscaping Catalog.
          3. Create a simple Product called PEST-1X. Make sure to activate it.
          4. Create a One Time Product Selling Model Option for the product.
          5. Create a price book entry for PEST-1X. Choose any price you want.
          6. Select One Time as the Selling Model, then save the price book entry.

          You now have a product that is ready to add to quotes and orders.

          Add Custom Field to the Product Disqualification Object

          To begin building the qualification rule, add a custom field for Billing State to the Product Disqualification object. Fields on this object are used as evaluation criteria by qualification rules.

          To create the custom field:

          1. Go to the Object Manager in Setup.
          2. Find the Product Disqualification object.
          3. Create a new text field called BillingState.
          4. Set the field visibility for all profiles and select the page layout to display the field.
          5. Save your work.

          Create a Product Disqualification Record

          Now that you have the custom Billing State field, create a Product Disqualification record with the criteria for our example scenario.

          To create the Product Disqualification record:

          1. Open the App Launcher and find Product Disqualifications.
          2. Click New and enter this field data:
            1. Product: PEST-1X.
            2. Effective From: today's date.
            3. Effective To: a date in the future.
            4. BillingState: CA.
          3. Save the record.

          Modify the Product Discovery Context Definition

          To add Billing State to the active product discovery context definition, modify the BrowseProductsCtxDefinition context definition.

          To modify the BrowseProductsCtxDefinition context definition:

          1. Go to Setup and find Context Definitions using Quick Find.
          2. Click Custom Definitions.
          3. Click BrowseProductsCtxDefinition.
          4. Click Edit.
          5. Click Next.
          6. You don't need to add any nodes, so click Next.
          7. Click Account Inherited, then click Add Attributes and enter these field values:
            1. Name: BillingState.
            2. Type: Input.
            3. Data Type: String.
          8. Click CategoryProduct Inherited. Add another BillingState attribute with the same values as before.
          9. Click Next.
          10. In the Account Node, enter BillingState as the Context Tag for BillingState.
          11. Save your work.

          Map Billing State in the Context Definition

          To complete the context definition modifications, map Billing State from the context definition input node to the account object node.

          1. Go to Setup and find Context Definitions using Quick Find.
          2. Click Custom Definitions.
          3. Click BrowseProductsCtxDefinition.
          4. Click Map Data.
          5. Open the action menu for the mapping and click Edit.
          6. Click Map.
          7. Map BillingState from the input Account Node to BillingState on the account object node.
          8. Save your work.

          Modify the Product Disqualification Decision Table

          Modify the disqualification decision table to include the criteria for our example qualification rule. The decision table is used by the Qualification Rule Procedure to evaluate the criteria for both qualification and disqualification.

          To add the Billing State criteria to the product disqualification decision table:

          1. Open the App Launcher and select Product Catalog Management. Navigate to the Home tab.
          2. Scroll down the page and click Qualification Rules.
          3. Open the Product Disqualification rule and click Deactivate.
          4. Click Save & Next.
          5. Click Add Condition.
          6. In Source Object Field, enter BillingState__c for the Source.
          7. In Operator, select Equals.
          8. Click Save & Next.
          9. Click Save & Next.
          10. Click Finish.
          11. Click Activate.

          Modify the Qualification Rule Procedure

          We're almost there! Now that we have configured all the qualification rule components we need, let's bring them all together in the qualification rule procedure.

          To modify the qualification rule procedure:

          1. Open the App Launcher and select Product Catalog Management.
          2. On the Home tab, scroll down and click Qualification Rules Procedures.
          3. Select the All Qualification Procedures list view.
          4. Click Product Qualification.
          5. In Qualification Procedure Versions click the most recent, active version.
          6. Deactivate the Rule Procedure.
          7. Open the Evaluate Disqualification component.
          8. Map the Billing State input parameter by selecting BillingState.
          9. Save and Activate the procedure.

          Confirm Product Discovery Settings

          All the pieces are now in place. As a best practice, let's check the Product Discovery Settings to ensure that we have the correct Context Definition and Qualification Procedure selected there.

          1. In Setup, find Product Discovery Settings using Quick Find.
          2. Confirm that Context Definition is set to BrowseProductsCtxDefinition.
          3. Confirm that Qualification Procedure is set to ProductQualification.

          Test the Qualification Rule

          Now let's ensure that the qualification rule performs as expected.

          1. Create a quote for an Account where Billing State = CA. Confirm that PEST-1X is not available in the catalog.
          2. Create a quote for an Account where Billing State is not CA. Confirm that PEST-1X is available in the catalog.
          Note
          Note If the qualification rule doesn't appear to be working, Sync Pricing Data and try again.
           
          Loading
          Salesforce Help | Article