When searching for enumerations, e.g. priority, and you want to use VariableSearchNode for Enum attrib, you must pass it the Enum index value and not the string value. Moreover, you can’t use the operator "Equal", use the "In" operator.
This search works:
<SearchConditions
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
ObjectTypeName="archiveObject"
SavedSearchName="">
<SearchNode
xsi:type="ConditionSearchNode"
Op="In">
<Left xsi:type="AttributeSearchNode" Path="archiveObject.priority" />
<Right xsi:type="VariableSearchNode" Name="priority" Type="IdList" Optional="false" />
</SearchNode>
</SearchConditions>
An example:
cmd4 export -conditions c:\sc.xml -pars priority:2 –out c:\out.xml