I am trying to use the Unique Name function to generate unique WorkOrder
names. Unfortunately it seems that it only searches "User" class objects.
Is there a way to set the Class to something other than "User"?
WorkOrder objects have classes of Dir-XMLWorkOrder and Top. The create
workorder events are triggered by a change in status code on a User
object. (e.g. Someone retires... Disable their accout in 30 days)


Unique Name Code...
<token-unique-name counter-digits="5" counter-pad="false"
counter-pattern="first" counter-start="1" counter-use="always" name="CN"
on-unavailable="error">
<arg-dn>
<token-text xml:space="preserve">ORG\WorkOrders</token-text>
</arg-dn>
<arg-string>
<token-text xml:space="preserve">WO-DISABLE-</token-text>
</arg-string>
</token-unique-name>


Query in Trace that is generated...
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.5.1.20070411 ">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<query class-name="User" dest-dn="ORG\WorkOrders" event-id="0" scope="subtree">
<search-class class-name="User"/>
<search-attr attr-name="CN">
<value>WO-DISABLE-1</value>
</search-attr>
<read-attr/>
</query>
</input>
</nds>