Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. If desired, a developer writes and compiles code that implements the appropriate Aptify interface to define matching or posting behavior.
    • To develop new matching logic, a developer writes and compiles code that implements Aptify's IImportRecordMatch interface.
    • To develop new posting logic, a developer writes and compiles code that implements Aptify's IImportRecordPost interface.
    • Creating new code is beyond the scope of this document. Refer to the Aptify Software Development Kit (SDK) for information on these interfaces.
       
  2. If a developer have defined new matching or posting behavior, the developer or an administrator adds the matching and/or posting object file to the Object Repository.
  3. Open a new record from the Import Sources service (found under the Aptify Framework Administration application).
  4. Enter a Name for the import source.
  5. Enter a source type in the Import Source Type link box.
  6. In the Mapping Entity link box, enter the entity that you want to import data to.
  7. In the Record Template link box, enter an existing Record Template for the entity you specified in the Mapping Entity field, if desired.
    • This field is optional. If you specify a record template, records created by the Import Runs posting function will use the default specified in the template if the import file does not specify a value for a particular field. This is particularly useful if your entity has a required field that does not have a mapped field in the import file.
      • For example, if your entity contains a required Category field Category field that is not in your source data, the import will fail fails since new records cannot be saved without specifying a Categorycategory. However, if you use a Record Template that specifies a default Categorycategory, the import will succeed succeeds since the posting process will use uses the information in the Record Template if not provided by the import file.
         
    • See the Working with Record Templates section of the "Forms and Records" chapter in the Aptify User Guide and "Pending Changes" on page 675 for  and Administering Pending Changes for more information on Record Templates.  

      Import Sources Record
  8. Configure the Record Match and/or Record Post fields if a developer has written code that modifies the standard matching and/or posting behavior.
    • If you leave these fields blank, the system uses the default matching and posting logic.
    • Follow these steps to specify your own matching logic:
      1. Enter the .NET assembly name for the Record Match file in the Record Match Assembly Name field. 
      2. Enter the Object Repository location of the Record Match object in the Record Match Object field. (Alternatively, you can click the plus (Emoticon: plus+) icon to the right of the field to open the Select Object Repository Object dialog. You can use this dialog to browse for an existing object or to add a new object to the repository.)
      3. Enter the class within the .NET assembly that defines the matching logic in the Record Match Class field. 
         
    • Follow these steps to specify your own posting logic: 
      1. Enter the .NET assembly name for the Record Post file in the Record Post Assembly Name field.
      2. Enter the Object Repository location of the Record Post object in the Record Post Object field. (Alternatively, you can click the plus (Emoticon: plus+) icon to the right of the field to open the Select Object Repository Object dialog. You can use this dialog to browse for an existing object or to add a new object to the repository.)
      3. Enter the class within the .NET assembly that defines the posting logic in the Record Post Class field.
      4. Enter any applicable Comments in the field provided.
         
  9. Click the Import Source Columns tab.
  10. Create an Import Source Columns sub-type record for each column that is contained in the import file.
    • Create one entry for each column in the import file, even if you do not intend to import a particular column.
    • The Import Source Columns sub-type records must appear in the same order that the columns appear within the import file.
    • Follow these steps to create an Import Source Columns sub-type record: 
      1. Open a new sub-type record.
      2. Enter the name of the column in the Column Name field.
      3. In the Default Mapping Field, enter the name of the field in the Mapping Entity to which data from this column will be imported. Leave this field blank if you do not want to import data from this column into Aptify.
      4. Place a check mark in Select the Show In Display box  check box if you want this column's data to appear in the Import Run Details record's Display Data field. If you select the check this box for multiple columns, the columns' data is separated by dashes in the Display Data field.
      5. Enter a Description, if desired.
      6. If the column is a field that should not be imported, uncheck the Import Default. For example, if a column is an ID field.
      7. If you want to allow a user to define the default matching criteria for a particular column in the import source file when running the Generic Import wizard, check the Match Column option.  

        Import Source Columns Record 
      8. Click OK to save and close the sub-type record.  

        Import Source Columns Tab
         
  11. Save and close the Import Sources record.

...