Use a validation rule formula to limit discounts on certain brands to 10%. You can use validation rules without custom metadata. However, to change an amount, you must update the hardcoded value. If you have multiple validation rules that check the discount amount, you have to manage all of them. Instead, use a validation rule formula with custom metadata types.
- Create a custom metadata type. In this example, we named it DiscountLimits.
- Create a custom field for your type. We named it maxDiscount.
- Create a record. We named it FoodDiscount.
Discount > $CustomMetadata.DiscountLimits__mdt.FoodDiscount.maxDiscount__c