Import Orders

Orders can be created automatically by the Loyalty platform based on information provided from a Point of Sale system. In addition, you can import a file of Orders.

Note: Loyalty supports importing Orders through both the Standard Import and Advanced Import features (see Importing Data into Loyalty for more information on these import features). This article describes how to import Orders using the Standard Import feature. For details on how to import Orders using the Advanced Import feature, please see Configure an Order Import Definition.

When using the Standard Import feature to import Orders, the import file must be located on your local PC, it must be either comma-delimited or semicolon-delimited, and it can include the following columns:

  • integration_id (required): The Order's integration ID

  • transaction_id: The Order's transaction ID

  • ordered_at: The order date.

To import a file of Orders:

  1. Select Transactions from the top navigation bar, then select Orders > Orders from the side navigation menu. The Orders screen is displayed.

  2. From the Actions drop-down menu, select Import Orders. The Create New Import pop-up window is displayed.

  1. Enter or select the desired configuration options. The different sections available within this window are described below in detail.

  2. When finished, click Submit to execute the import process.

File Options

This section defines the basic properties of the import file.

  1. From the Import Method drop-down menu, define how you want the platform to handle the import records:

    • Insert Data or Update if Duplicate: The platform will create new records and update existing records.

    • Insert Data or Skip if Duplicate: The platform will create new records only; updates to existing records are ignored.

    • Update Data or Skip Insert: The platform will update existing records only; new records are ignored.

  1. The Find Options field is automatically populated with the required columns for this import type. Optionally, depending on the type of object being imported, you may be able to select additional columns on your import file. Add these additional columns in the order in which they appear in your file.

  2. By default, the platform will create an Activity record associated with this import. To omit this process, select Yes next to Skip Publish Activity.

  3. Optionally, to import blank values, select Yes next to Include Include Blank Values.

  4. The platform supports email and phone number syntax validation on the appropriate import fields. Optionally, to run this validation, select Yes next to Validate Records.

  5. If you have Business Units enabled in your account, select a Business Unit from the Business Unit drop-down menu.

  6. To send email notifications following a successful import process, enter one or more email addresses in the Success Import Email Recipients field.

  7. To send email notifications following a failed import process, enter one or more email addresses in the Failed Import Email Recipients field.

  8. To select the import file, click Choose File. Browse to and select the desired file, then click Open.

  9. Select the column separator used in the import file: Comma or Semicolon.

Child Options

This section allows you to populate rows in "child" tables joined to the main object table into which you are importing data. 

  1. Click Add Child.

  2. From the Resource drop-down menu, select the desired child table.

  3. The Find Options drop-down menu is populated with all of the columns in the selected child table. From this menu, add the columns you intend to import. Add these columns in the order in which they appear in your import file.

  4. If you want to skip the child record when the parent record is skipped, check Skip with Parent.

  5. Repeat the above steps as needed to define additional child tables. Optionally, to delete a child table, click Delete.

Import Options

This section provides additional options regarding the use of Lookup tables in the import process:

  1. Click Add Options.

  2. To use a Lookup table, select the desired table from the Lookup Table drop-down menu.

  3. From the Lookup Column drop-down menu, select the desired column on the Lookup table.

  4. Enter a value in the Rename as field.

  5. In the Find by Columns field, select one or more columns used to identify existing records in the database.

  6. If the Lookup table is required, select Yes next to Required.

  7. If you want to stop the import process if a duplicate record is found, select Yes next to Abort on Duplicate Record.

  8. Optionally enter any additional conditions as Groovy expressions in the Condition field.

  9. Optionally, click Delete to remove the additional import options.