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

object-extract

The <object-extract> element contains a regular expression that is used to parse results from synchronous command that are marked as containing objects.

Standard .NET regular expression syntax is used, with named capture groups used to extract the attributes. Unnamed capture groups are ignored, as are any capture groups with names that were not found in the schema, unless they are defined in a multivalue-extract.

Multi-valued attributes can be extracted with the object-extract element, and further parsed with the multi-valued-extract function.

Example - Full Import

<object-extract><![CDATA[^(?<accountName>.+)?:\*?:(?<gid>.+)?:(?<members>.+)?$]]></object-extract>
The example above extracts the accountName, gid, and member values from each line of the result output

Example - Delta Import

<object-extract><![CDATA[^(?<changeType>[ard]):(?<accountName>.+)?:\*?:(?<gid>.+)?:(?<members>.+)?$]]></object-extract>
The example above extracts the accountName, gid, and member values from each line of the result output, and extracts the changeType value as either a, r or d (add, replace and delete respectively), for use with a delta import. See modification-type-mappings for more information.

Last edited Sep 20, 2013 at 11:13 PM by ryannewington, version 11