Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| a_f:a:import [2022/09/01 01:23] – removed - external edit (Unknown date) 127.0.0.1 | a_f:a:import [2025/06/12 03:59] (current) – Change to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | ====== IMPORT ====== | ||
| + | This action imports the contents of the comma delimited text file (CSV) and creates or modifies instances of the specified business object. | ||
| + | |||
| + | ===== Syntax ===== | ||
| + | |||
| + | '' | ||
| + | |||
| + | where Id() is the identifier of the business object to be imported and the ArithmeticOperation() is the expression identifying the name of the import file. The result of the arithmetic operation must be a string. For example: | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | If '' | ||
| + | |||
| + | The following options can be used with the action: | ||
| + | |||
| + | * '' | ||
| + | |||
| + | If the action is likely to import many instances of the business object (hundreds or even thousands) their processing may take a while. In this case it is better to perform processing in smaller chunks (batches). After the processing of each batch finishes the results are immediately committed to the system and stored in the database. If the batch size is not specified the system will only commit the results once all instances have been processed. For example: | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | * '' | ||
| + | |||
| + | If this keyword is specified any rules associated with the business object being imported will be executed. If this option is omitted, the instances of the business object will be stored in the system but any rules associated with the business object will not be executed. If any rule fails for some record in the import file, this record will be ignored. For example: | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | * '' | ||
| + | |||
| + | If this keyword is specified imported objects will stay in the Context and will be available for further processing by rules. This option is not recommended if large number of objects is being imported. | ||
| + | |||
| + | * '' | ||
| + | |||
| + | If this keyword is specified the import file can be used both to update existing records and create new ones. If a record referred to in the file is not found //**AwareIM **//will create a new record. | ||
| + | |||
| + | See also the “[[: | ||
| + | |||
| + | * '' | ||
| + | |||
| + | If this keyword is specified an import is performed using one of the user-defined import templates, for example: | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | * '' | ||
| + | |||
| + | This keyword specifies encoding of the imported file, for example: | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | The default encoding is UTF-8. | ||
| + | |||
| + | |||
| + | {{tag> | ||