Set Up Product Qualification Rules
Learning Objectives
After completing this unit, you’ll be able to:
- Define a custom field for product qualification.
- Update the context definition to map the custom field.
- Create a product qualification rule.
- Create a qualification rule procedure.
Define Qualification Rule
So far, Manoj knows how to set up products in the InfinitraBytes catalog. Now, he plans to meet a key business requirement: make certain products visible only to customers in specific states. To do this, he uses product qualification rules to control visibility based on customer location.
Follow along as he defines a product qualification rule.
Define Custom Field
First, Manoj defines a custom field in the Product Qualification object. Follow along in your Developer Edition org.
- From Setup, in the Quick Find box, find and select Object Manager. It displays the list of available objects.
- Select Product Qualification.
- Click Fields & Relationships.
- Click New.
- In the New Custom Field page, select Text as the Data Type and click Next.
- Enter these details.
- Field Label:
Billing State - Length:
5
- Field Label:
- Click Next
- For the Field-Level Security for Profile, select Visible and click Next. This makes the field visible to all security profiles.

- Click Save.
The custom field to capture the customer’s state is now ready. The Account object has a corresponding field that stores the billing state information. The next step is to map these two fields in the context definition.
Extend the Context Definition
The ProductDiscoveryContext context definition defines the list of products to be displayed when customers browse the product catalog. Manoj extends it and adds a custom field in the appropriate node. Follow along.
- From Setup, in the Quick Find box, find and select Context Definitions.
- For ProductDiscoveryContext, click
and select Extend.
- In the Extend Context Definition window, enter the name as
ProductQualificationContext.
- Click Save.
- In the Context Definitions page, go to the Custom Definitions tab, and then select ProductQualificationContext.
- Click Edit.
- Click Next and then Next again.
- In the Edit Attributes window, select the Account node.
- Click Add Attributes. A blank row is added to the list. Enter these details.
- Name:
BillingState - Type: INPUT
- Data Type: STRING

- Name:
- Click Next.
- Select the Account Node, scroll down to locate the BillingState⸺c attribute, and click + Add Tags next to it.
- In the Add Tag Name field, enter
BillingState.
- Click Done and then, click Save.
You have successfully created a custom context definition by extending the ProductDiscoveryContext context definition and added a custom field.
Map Custom Field in the Context Definition
Next, Manoj edits this custom context definition and creates a mapping of the custom field to the corresponding field in the sObject Account. Follow along in your Developer Edition org.
- In the ProductQualificationContext page, go to the Map Data tab.
- For ProductDiscoveryMapping, click
, and select Edit SObject Mapping.
- In the Edit Mapping window, select Mark as Default and then, click Map. If you are prompted to switch to the new UI for context mapping, click Proceed. The Context Mapping page opens.
- In the Node side panel, select Account.

- For BillingState__c field, select BillingState and click Save. This step maps the fields in the context definition and the sObject.
- Save your changes.
- Switch to the ProductQualificationContext page and click Activate to activate the context definition.
You have now mapped the custom field in the context definition. Next, create the necessary decision tables.
Create Qualification Rule
Decision tables or qualification rules store and evaluate the conditions that qualify or disqualify a product. Follow along as Manoj creates a qualification rule to specify the condition for product qualification.
- From the App Launcher, find and select Product Catalog Management.
- On the home page, click the Qualification Rules tile. It displays the list of qualification decision tables.
- Click New and enter these details.
- Name:
Billing State Qualification - Description:
Decision table for product qualification based on billing state
- Application Usage: Product Qualification
- Decision Table Type: Standard
- Name:
- Click Save & Next.
- In the Conditions & Results step, enter these details.
- Source Object: Product Qualification
- Source Object Field: ProductId

- Source Object: Product Qualification
- Click + Add Condition and for Source Object Field, find and select Billing_State__c.
- In the Results section, for Source Object Field, find and select IsQualified.

- Click Save & Next.
- In the Behaviours step, enable Consider Null Values for Lookup and then, click Save & Next.
- Click Finish.
- In the Billing State Qualification page, on the Table tab, click View Object Record Page.
- Click New and enter these details.
- ProductId: Laptop
- Billing_State__c:
CA
- ProductId: Laptop
- Save your changes.
- Activate the newly created decision table. In the Billing State Qualification page, click Activate.

You’ve successfully created the decision table that contains the rule for validating the product qualification. Next, create a qualification rule procedure.
Create Qualification Rule Procedure
Qualification rule procedures consist of a series of elements or steps that evaluate a product or a product category for qualification or disqualification. These steps are based on the conditions you define in the qualification rule decision tables.
- From the App Launcher, find and select Product Catalog Management.
- On the home page, click the Qualification Rules Procedures tile.
- Click New and enter these details
- Name:
Product Qualification Procedure - Usage Type: Product Qualification
- Context Definition: ProductQualificationContext
- Name:
- Save your changes.
- In the Qualification Procedures Versions section, select Product Qualification Procedure V1. The qualification procedure opens on a new browser tab.

- Click
, and then, click Evaluate Qualification.
- In the Lookup Table Details field, find and select Billing State Qualification.
- Add these details.
- ProductId: ProductId
- Billing_State: BillingState__c
- IsQualified: IsQualified
- Reason: Reason

- ProductId: ProductId
- Save your changes
- Click
and enter Rank as 1.
- Click
and select Include in Output.
- Click Save and then, Activate.
The product qualification procedure that is evaluated when customers or sales reps browse for products during quoting is now ready.
Next Up
Nice work! In this unit, you defined the custom field, updated the context definition, defined the qualification rule and the qualification rule procedure. In the next unit, you test the qualification rule using a quote.
For now, click Check Challenge to Earn Points.