Use Case: A Rule to Add a Companion Product
This use case describes how to create a product rule that will automatically add the License product rate plan when the Hardware product rate plan is selected.
Set up the Products for the Use Case
- In Zuora, create two products and their rate plans in Product Catalog.
- Name the first product Basic Hardware and name its rate plan Hardware.
- Name the second product License and name its rate plan License Rate Plan.
- In Zuora, run a Product Catalog sync.
Create the Rule
- In the Rules tab, click New and add the following rule.
- Rule Name: Add License if Hardware
- Active: Select the field.
- Define a condition that checks if the quote contains the product named, Basic Hardware.
- In the CONDITION section, click Add Criteria....
- In the Attribute Type field, click and select Rollup Value.
- In the Object field, click and select Rate Plan.
- In the Rollup Type field, click and select Count.
- In the Filter field, click to create a Filter Condition.
- Click New Fillter.
- In the Filter field, specify a filter name.
- In the Attribute Type field, click and select Object Field Value.
- In the Object Field field, click -Select Field-.
- In the Rate Plan Field field, click and select Product>.
- In the Product Field field, click and select Product Name.
- Click Select.
- Click is equal to and select contains.
- In the Attribute Type field, click and select Static Value.
- In the Value field, type Basic Hardware.
- Click Create and click Select.
- Click is equal to and select is greater than/equal to.
- In the Attribute Type field, click and select Static Value.
- In the Value field, type 1.
- Define the action that automatically adds the product named, License.
- In the ACTIONS section, click Add Action....
- In the Action Type field, click and select Add Product.
- In the Product field, click and select License.
- In the Rate Plan field, click and select License Rate Plan.
- In the Message field, type "License added."
- Click Save.
Verify the Rule
- Create a new quote of the New Subscription type.
- Add the Basic Hardware product and Hardware rate plan in the Enhanced Guided Selling flow.
- Verify that the License product and the License Rate Plan are added to the quote.
- The Rules Engine Logs section will show the message you specified in the rule, "License added."