Table of Contents

, , , ,

EXPORT

This action exports existing instances of the specified business object into a comma delimited text file (CSV file).

Syntax

EXPORT (Id() | StringLiteral()) TO ArithmeticOperation() [ FOR UPDATE ] [ EXCLUDE RELATIONSHIPS ] [ EXCLUDE BINARY ] [ USING ArithmeticExpression () ] [ APPEND ] [ ENCODING ArithmeticExpression ()]

where Id() is the identifier of the business object to be exported, StringLiteral() is the name of the query to be exported and the ArithmeticOperation() is the expression identifying the name of the export file. If the file doesn’t exist it will be created. The result of the arithmetic operation must be a string.

Example

EXPORT PersonalSavingAccount TO 'c:/mydocuments/psa.csv' 

If the name of the business object is used, the instances available in the current context will be exported. If the name of the query is used Aware IM will run the query and export the results. If the query has attributes to display defined, only those attributes will be exported. Query names have to be enclosed in apostrophe. User defined queries are also supported.

There are several options that can be used with the action:

EXPORT PersonalSavingAccount TO 'c:/mydocuments/psa.csv' FOR UPDATE 
EXPORT PersonalSavingAccount TO 'c:/mydocuments/psa.csv' EXCLUDE RELATIONSHIPS 
EXPORT PersonalSavingAccount TO 'c:/mydocuments/psa.csv' EXCLUDE BINARY 
EXPORT PersonalSavingAccount TO 'c:/mydocuments/psa.csv' USING 'Account Template' 
EXPORT PersonalSavingAccount TO 'c:/mydocuments/psa.csv' APPEND 
EXPORT PersonalSavingAccount TO 'c:/mydocuments/psa.csv' ENCODING 'UTF-8' 

The default encoding is UTF-8.

See also the “Export and Import” section.