Unrelate Relations Example

The three CLEAR_RELATION forms are useful for selectively unrelating objects. In this example, queues and users are connected by the relation queue2user, which tells the system which users can access the queue. Sally and Sam* are unrelated from the queue product_support, and the users Bob and Barbara* are added to the queue with the following:

Object type="queue" name="product_support_queue"
     Unique_field="title"
Fields
     Title="product_support"
End_fields
Relations
     Clear_relation queue2user user_sally;
     Clear_relation queue2user user_sam;
     To_name="user_bob" rel="queue2user"
     To_name="user_barbara" rel="queue2user"
End_relations
End_object name="product_support_queue"

*Note: The objects user_sally, user_sam, user_bob, and user_barbara must be defined in object headers in the import file.

See Also

Clear Relations

Form 1

Form 2

Form 3

Next

Complete List of Import Object Definition Elements

Unrelate Relations Example