Example of Validating Organizations Using Item Rules

You can define validation rules that automatically validate the assignment of items to one or more organizations when a condition is satisfied. The condition can be based on attribute values, another organization assignment, or a catalog assignment.

Scenario

The following table summarizes an example of an item rule that:

  • Is defined in a validation rule set that's associated with an item class or with an attribute group.

  • Following the assumption that items of the item class Extra Data Servers must not be assigned to the Seattle Distribution Center (code S2), validates that an item isn't assigned to S2 if its item class is Extra Data Servers. This validation is performed by the following steps:

    • Test whether the item class of an item is Extra Data Servers.

    • If the result of the test is true, then test whether the item isn't assigned to the organization S2, by using the function assignedtoOrg(orgCode), which returns true if the item is assigned to the organization specified by orgCode.

Field

Value

Name

Organization validation

Description

Validate assignment of Extra Data Servers

Severity

Reject

IF Expression

[Item].[Item Basic].[Item Class] == 'Extra Data Servers'

Validation Condition

!assignedtoOrg('S2')

User Message

Extra Data servers can't be assigned to the Seattle Distribution Center.