Exports entities to a file.
Syntax
Importexportcli.exe export -con <ARA-url> -usr <user> -pwd <password> -format <xml|csv> -fi <file> [-mt <maintype>] [-properties “<list of properties>” [-where <matches>] [-failonerror]
Parameters
-con: URL of the import/export service of the web application
Example: https://www.mycompany.com/WebUI
-usr: Name of the user (syntax: system name / client number / user name / department)
When only one client is installed, the system name is optional.
-pwd: Password of the user specified in -usr or the token returned by the Java API
-mt: Name of the main type you want to export
-ct: Name of the custom type you want to export
If the parameter is not set, all custom types of the given main type will be exported.
-fi: Path name to the file that contains the entities you want to export
Options:
Note: If a file already exists, it will be overwritten without any confirmation.
-begin: Number of the first entity to be exported
Entities are sorted by their internal ID.
-count: Number of entities to be exported
You can use this parameter only together with -begin
-format: Format to export to
Must be XML or CSV. See Formats.
-properties: Comma separated list of properties (enclosed with " "- double quotes) which should be exported. Per default all properties of the given entity will be exported.
Note: When specifying properties which only exist in some custom types, an empty value for those entities which do not hold this property will be returned.
-startdate: Export all data which was created or changed since this date ( =). If the parameter is not set all data will be exported. The date has to be supplied in ISO 8601 format.
-enddate: Export all data which were created or changed until this date ( ). If not set all data will be exported. The date has to be supplied in ISO 8601 format.
-where: An optional condition (enclosed with " " - double quotes) that is used to filter the data.
The format of the condition is: "[propertyname] [operator] '[value]' "
propertyname: the name of the system or custom property which should be filtered. You can also filter on properties of related entities via the dot notation; e.g. system_owner.system_name eq 'Bob' will filter all entities of the given main type, that are owned by Bob.
Note: in conditions only properties of directly related entities can be used. E.g.
system_component.system_application.system_name is not valid.
operator: the operator which should be used for filtering. It can be: eq (equal), neq (not equal), gt (greater than), geq (greater than or equal), lt (lower than), leq (lower than or equal), like (matches a pattern with * as wildcard), unlike (matches a pattern with * as wildcard)
'value': the filter value. It has to be quoted in single quotes. If you filter for something eq '' both empty values and NULL values will be found.
Note: Wildcard matching is only possible on properties which do not have predefined values.
You can add the -where parameter multiple times, to apply multiple conditions (AND combined) to the export.
Note: If there are multiple properties with the same name but different types (e.g. one is a date and time property, the other a longtext property), the operator will behave as if both properties are a string (e.g. greater or lower than will not work as expected for the date and time property).