PIM Business Rule - assignedTo
Hi,
We have an Item category - 'ProductFamily' structure with 3 segments (DEPT, CLASS, SUBCLASS)
Typical tem Categories are
10.20.25
10.30.32
...
20.25.15
....
30.10.20
Requirement is ...
1) to validate if 'Dept' = 10, then enforce value for another Attribute, say A1
2) to validate if 'Dept' = 20, then enforce value for another Attribute, say A2
Query:
Is there a business rule function available to check the category segment value ?
We tried to use the following functions which does not meet the reqmt
A)
assignedTo("ProductFamily","10",1)
Error: Rule validation throws error - "10" is not a valid item category ?
b)
syntax: <Catalog Specifier>.<Category Specifier>.<Attribute Name>
Catalog[ProductFamily].ParentCategory.Name == "10"
In the function, what should we use as <AttributeName> (Name) for accessing the item category individual segment ?