Import Scenario Creation
You create import scenarios on the Import Scenarios (SM206025) form.
The creation of the import scenario consists of the following general steps:
- Analyzing the sequence of actions on the form
Before you start creating an import scenario on the Import Scenarios form, you should create a data provider, as described in Data Providers, and learn how a data record is entered on the target MYOB Acumatica form.
When reviewing the MYOB Acumatica form for which you will compose the import scenario, pay attention to the required fields on the form. All these fields must be filled in when you create a new record. Some fields on the form can get default values, which can also be used during import. For example, you can configure customer classes before you import customer records so that when these records are imported, the system gets most of settings from the customer class specified for the customer. You can provide the values of the fields that have default values during import and override these default values. Make sure all required data fields either are included in the imported data or are filled with default values.
Before you start creating a scenario, we strongly recommend that you manually enter one record of the imported data (or a test record) on the target MYOB Acumatica form. (If you enter a record of the imported data, during import, you can exclude this record from processing to avoid duplication of records in the system.)
As you manually enter the record, make a note of the sequence of actions you perform: the order in which you specify values in the fields on the form, and the actions you perform for the entered record, such as adding a new row and saving your changes.
- Specifying scenario parameters
The parameters of an import scenario define the name of the scenario, the MYOB Acumatica form to which data will be imported, and the data provider and source object, which together specify the data source. You can also set other import scenario parameters that define the mode of import and the properties of the data being imported.
- Creating mapping of the scenario
Mapping is the process of creating one-way relations between the fields of an external data source and the fields of an MYOB Acumatica form. To provide mapping for a particular field on an MYOB Acumatica form, you perform the following steps on the Mapping tab of the Import Scenarios (SM206025) form:
- Add a row for the field you want to map.
- In the Target Object box, specify the MYOB Acumatica object that includes the target field. An object represents a group of fields on an MYOB Acumatica form, such as a summary area or a detail tab.
- In the Field/Action Name column, select the appropriate internal field or action. An internal field is a field of the MYOB Acumatica object selected in the Target Object box.
- In the Source Field/Value column, select the matching external field, internal field, or combination of internal and external fields, functions, and constants. An external field is a field of the object from the data provider specified in the scenario.
When you are mapping fields, you should first map the key fields: the fields that the system uses to distinguish records that belong to different documents. For example, on the Invoices and Memos (AR301000) form, there are two key fields: Type and Reference Nbr. You should map these fields before you map the other fields, because you fill in these fields first on the form when you manually enter an invoice. After you have mapped key fields, you should map other fields in the order in which you would fill them in on the form.
You can deactivate some rows of the scenario mapping by clearing the Active check box for corresponding rows. This will exclude the corresponding instruction from the scenario mapping, and this instruction will not be executed during the import process.
At the end of the mapping of the scenario that imports or updates data in the system, to save the imported record to the database, you have to insert a row with the <Action: Save> action.
- Configuring source and target restrictions
To import only some records from the data source or update only the records that satisfy some condition, you can configure source and target restrictions for an import scenario on the Import Scenarios (SM206025) form.
You can find detailed descriptions and examples of the use of source and target restrictions in the following topics:
After these steps have been performed, the scenario is ready, and you can use it for data processing.