Guidance: Ensure Proper Configuration with a Product Rule
Create a summary variable to sum solar panels
- Variable Name: Solar Panel Sum
- Target Object: Product Option
- Aggregate Function: Sum
- Filter Field: Product Code
- Operator: equals
- Filter Value: SOLARPANEL400W
Create a summary variable to sum microinverters
- Variable Name: Microinverter Sum
- Target Object: Product Option
- Aggregate Function: Sum
- Filter Field: Product Code
- Operator: equals
- Filter Value: MICROINVERTER
Create a product rule
- Product Rule Name: Enforce Microinverter Quantity
- Type: Validation
- Scope: Product
- Evaluation Event: Save
- Active: true
- Conditions Met: All
- Message: You must include at least as many microinverters as you have solar panels
On the product rule, create the first error condition
- Tested Variable: Microinverter Sum
- Operator: greater than
- Filter Type: Value
- Filter Value: 0
On the product rule, create the second error condition
- Tested Variable: Microinverter Sum
- Operator: less than
- Filter Type: Variable
- Filter Variable: Solar Panel Sum
On the product rule, create a configuration rule
- Active: true
- Product: Solar Controller Hub