# do-add-dest-object

The <do-add-dest-object> action causes an object of type class-name to be created in the destination datastore with a name and location provided by <arg-dn>. Any attribute values to be added as part of the object creation must be done in subsequent <do-add-dest-attr-value> actions using the same <arg-dn>.

### Example

>     <do-add-dest-object class-name="User">
>       <arg-dn>
>         <token-text>Users/Fred Flintstone</token-text>
>       </arg-dn>
>     </do-add-dest-object>

>     <do-add-dest-attr-value name="Surname">
>       <arg-dn>
>         <token-text>Users/Fred Flintstone</token-text>
>       </arg-dn>
>       <arg-value>
>         <token-text>Flintstone</token-text>
>       </arg-value>
>     </do-add-dest-attr-value>

## 1. Allowed Content

> arg-dn
>   DN argument

## 2. Attributes

> Attribute | Value(s) | Default Value
> --- | --- | ---
> class-name | CDATA class name of object to create supports variable expansion | #REQUIRED
> direct | true | false use destCommandProcessor to carry out this action Deprecated - use when="direct" instead | false
> disabled | true | false true if this element is disabled | false
> notrace | true | false true if this element should not be traced during execution of policy | false
> when | auto | before | after | direct when this action should be performed auto - automatically determined (either in or after the current operation) before - before the current operation after - after the current operation direct - written directly to the destination datastore instead of being added to the current document | auto

## 3. Content Rule

> ( arg-dn )

## 4. Parent Elements

> actions
>   actions that are performed by a <rule>
> arg-actions
>   actions argument

Top Elements || All Elements || Tree