This project has moved. For the latest updates, please go here.

<AnchorAttribute> element

The <AnchorAttribute> element defines an attribute that defines an anchor, or primary key for the resource. At least one <AnchorAttribute> element is required for each ResourceOperation. Anchor attributes must have a corresponding AttributeOperation element. The AttributeOperation is allowed to have an operation type of 'none' (provided the operation is not an 'add'), but must be present for all operations.

Example

<ResourceOperation operation="Add Update" resourceType="Set" id="demoSet">
   <AnchorAttributes>
      <AnchorAttribute>DisplayName</AnchorAttribute>
   </AnchorAttributes>
   <AttributeOperations>
      <AttributeOperation operation="replace" name="DisplayName">___Demo Set</AttributeOperation>
      <AttributeOperation operation="replace" name="Description">Contains all the test users for the purpose of this demo</AttributeOperation>
       <AttributeOperation operation="replace" name="Filter" type="filter">/Person[starts-with(AccountName, 'testuser')]</AttributeOperation>
   </AttributeOperations>
</ResourceOperation>

<ResourceOperation operation="Delete" resourceType="Set" id="demoSet">
   <AnchorAttributes>
      <AnchorAttribute>DisplayName</AnchorAttribute>
   </AnchorAttributes>
   <AttributeOperations>
      <AttributeOperation operation="none" name="DisplayName">___Demo Set</AttributeOperation>
</ResourceOperation>

Last edited Aug 21, 2015 at 3:34 AM by ryannewington, version 2