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] – ↷ Page moved from a_f:3100_actions:import to a_f:a:import administrator | a_f:a:import [2025/06/12 03:59] (current) – Change to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{tag>Actions | + | {{tag>Index Action |
| ====== IMPORT ====== | ====== IMPORT ====== | ||
| Line 10: | Line 10: | ||
| 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: | 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> IMPORT PersonalSavingAccount FROM ' | + | <code aim> |
| If '' | If '' | ||
| Line 20: | Line 20: | ||
| 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: | 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> IMPORT PersonalSavingAccount FROM ' | + | <code aim> |
| * '' | * '' | ||
| Line 26: | Line 26: | ||
| 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: | 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> IMPORT PersonalSavingAccount FROM ' | + | <code aim> |
| <callout type=" | <callout type=" | ||
| Line 38: | Line 38: | ||
| * '' | * '' | ||
| - | 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 //**Aware IM **//will create a new record. | + | 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 |
| See also the “[[: | See also the “[[: | ||
| Line 46: | Line 46: | ||
| If this keyword is specified an import is performed using one of the user-defined import templates, for example: | If this keyword is specified an import is performed using one of the user-defined import templates, for example: | ||
| - | <code aim> IMPORT PersonalSavingAccount FROM ' | + | <code aim> |
| * '' | * '' | ||
| Line 52: | Line 52: | ||
| This keyword specifies encoding of the imported file, for example: | This keyword specifies encoding of the imported file, for example: | ||
| - | <code aim> IMPORT PersonalSavingAccount FROM ' | + | <code aim> |
| The default encoding is UTF-8. | The default encoding is UTF-8. | ||