Create a custom validation definition
Provide a script that validates a context rule input or output in the decision table for a pricing or product eligibility matrix.
Before you begin
Role required: admin
Procedure
-
In the CRM Workspace, select the List [Omitted image "list-outline-24.svg"] Alt text: view.
-
Navigate to Context Rule Management > Validation Definitions.
-
Select New.
-
In the Script field, enter the custom script that defines the error check, warning messages, and error messages for the validation.
-
If the decision condition won’t be active by default, select Inactivate decision condition.
-
Enter the Name of the validation definition.
-
Select Save.
-
Associate the custom definition to a rule matrix.
-
Navigate to Context Rule Management > Matrix Validations.
-
Select New.
-
In the Matrix type field, select the rule matrix to which this custom validation definition applies.
-
-
Select Save.
---
title: Create a custom validation definition
description: Provide a script that validates a context rule input or output in the decision table for a pricing or product eligibility matrix.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/order-management/create-validation-definition.html
release: australia
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Configure matrix validation rules, Product pricing, Configure, price, quote apps, Configure, Sales Customer Relationship Management]
---
# Create a custom validation definition
Provide a script that validates a context rule input or output in the decision table for a pricing or product eligibility matrix.
## Before you begin
Role required: admin
## Procedure
1. In the CRM Workspace, select the **List** \[Omitted image "list-outline-24.svg"\] Alt text: view.
2. Navigate to **Context Rule Management** > **Validation Definitions**.
3. Select **New**.
4. In the **Script** field, enter the custom script that defines the error check, warning messages, and error messages for the validation.
5. If the decision condition won’t be active by default, select **Inactivate decision condition**.
6. Enter the **Name** of the validation definition.
7. Select **Save**.
8. Associate the custom definition to a rule matrix.
1. Navigate to **Context Rule Management** > **Matrix Validations**.
2. Select **New**.
3. In the **Matrix type** field, select the rule matrix to which this custom validation definition applies.
9. Select **Save**.
| title | Create a custom validation definition |
| description | Provide a script that validates a context rule input or output in the decision table for a pricing or product eligibility matrix. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/order-management/create-validation-definition.html |
| release | australia |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Configure matrix validation rulesProduct pricingConfigurepricequote appsConfigureSales Customer Relationship Management |