Skip to main content

Import and export decision table data

You can import and export decision table row data to make bulk changes or to edit rules offline. Bulk import and export functionality apply to decision table rows only. You cannot use an import file to create, delete, or modify decision table columns, conditions, result fields, or other table structure. The imported file must match the structure of the existing decision table.

Import decision table data

Bulk import and export are useful when you must add many rows, update existing rows, delete rows, or review decision table data outside Genesys Cloud. If the decision table contains a draft version at the time of importing new data, you can replace the draft decision table information with the import file information.

Before you import decision table changes

  • You must have the required permissions to import or export decision table data. 
  • You must have access to the division that contains the decision table.
  • If the import or export includes platform objects, such as queues, you must have access to those objects.
  • You can add new rows, delete existing rows, and update information of existing rows. The import file must follow the same structure of the existing decision table. You cannot create or delete columns using the import option.
  • To avoid structure errors, export the decision table first and use the exported file as the basis for your import file.
  • Import creates or updates a draft version of the decision table. It does not automatically publish the decision table.
  • If a draft version exists, you can replace the draft with the imported data.
  • Import does not partially update a decision table. If any row fails validation, the entire import fails and the decision table is not updated

Add, update, and delete rows with import

You can add, update, or delete row information in existing decision tables. The import file determines whether Genesys Cloud adds, updates, or deletes rows.

  • Add rows: To add a row, leave the row UUID field blank and enter the required row values. Genesys Cloud treats the row as new and assigns it a UUID. 
  • Update rows: To update an existing row, include the row UUID in the import file. Genesys Cloud replaces the existing row values with the values from the import file.
  • Delete rows: To delete rows, export the decision table, remove the rows from the file, and then import the file with the Replace all option. Genesys Cloud removes rows that are not included in the imported file.

Follow the following procedure to perform any action:

  1. Click Menu > Orchestration > Rule-Based Decisions > Decision Tables.
  2. Select the decision table that you want to update. 
  3. Click Import.
  4. Choose one of the following import options:
    • To add the new rows to the bottom of the decision table, select Append. The imported file data must not contain row UUIDs. New rows are added to the end of the existing rows, and their priority follows their order in the imported file.
    • To replace the entire decision table with the rows present in the imported file, select Replace all. When you replace rows, row priority follows the order of the rows in the import file. 
  5. Start the import. The import option creates a draft of the decision table. Manually publish the decision table for it to take effect.

Causes for import failure

    When you import a .csv file to update a decision table, Genesys Cloud validates the file. If validation succeeds, Genesys Cloud creates or updates the draft version of the decision table. If validation fails, Genesys Cloud does not update the decision table. When the import action fails, the decision table is not updated. Genesys Cloud does not commit a partial import of data. The following conditions may cause an import to fail:

      • All times are per UTC

    Export decision table data

    You can export decision table data to review it offline, make bulk changes, or create a template for new rows. You can export the decision table data either as a template (only column headings) or with the available row information.

    Note:
    • Ensure that you have access to the divisions of the queues within the decision table.
    • You can download only the export files that you started. Export files are available for 24 hours from the time the export action is triggered.
    1. Click Menu > Orchestration > Rule-Based Decisions > Decision Tables.
    2. Select the decision table that you want to export.
    3. Click Export.
    4. Select the export file format.
    5. Start the data to export.
      • To export the decision table column headings, row UUIDs, and all available row data, select Full export.
      • To export the decision table column headings and structure without row data, select Template export. Use a template export when you want to add new rows without downloading the existing rows.
    6. When the export completes, download the export file.

    View import and export history

    To view recent import or export history, click Import or Export, and then click View History.

    The history shows import and export jobs from the last seven days, including the user who started the job, the time of the action, the job status, and failure information when a job does not complete successfully.

    Special field values in import file

    Decision table import and export files support special field values to distinguish between column defaults and empty strings. Decision table import and export files support special field values for defaults, empty strings, null values, wildcards, and current time values. These values are exported with double angle brackets, for example <<Empty>>.

    • To use a column’s default value, either leave the field blank in the .csv file (for example, consecutive commas ,,,) or use <<Default>>. Both are treated the same during import, and the current default value for the column is applied. For default values, the recommended import format is a blank field. In the .csv file, a blank field appears as consecutive commas, such as ,,.
    • Exported files use the longer <<Default::value>> format so that the file shows the complete rule as it existed at the time of export. For example, if a column default is configured as 32, an exported file can show<<Default::32>>. If you later import that file, Genesys Cloud uses the current default configured for that column at the time of import. If the column default changed from 32 to 40, the imported row uses 40.
    • For manually created CSV files, leaving the field blank is recommended. Exported files may use <<Default>> to clearly indicate that the column default is being used.
    • To set a field to an empty string, use <<Empty>>. Do not leave the field blank, because blank fields are interpreted as default values.
      • In exported CSV files, Genesys Cloud escapes string literals that could otherwise be interpreted as special field values or formulas.
        • String values that contain commas are enclosed in double quotation marks so that the comma is not interpreted as a field separator; for example, my, csv, value is exported as "my, csv, value".
    • Any other value is imported as-is.

    Use the exact capitalization shown in the following table.

    Special field values in the import and export fileFormat used when exportedAcceptable formats when importingImport behavior and notes
    Default 
    <<Default::value>>
    Blank field or cell, such as ,, in CSV; <<Default::value>>
    The row uses the column default configured at the time of import. The value after :: is the default value configured for the field at the time of export, such as <<Default::My Default String>>, <<Default::true>>, or <<Default::32>>. On import, that exported value does not persist as a literal row value.
    Empty
    <<Empty>>
    <<Empty>>Sets the field to an empty string. Do not leave the field blank for an empty string, because a blank field means that the row uses the column default.
    Null
    <<Null>>
    Represents a null value. Use of a <<Null>> depends on the default value configured in your decision table.
    Wildcard
    <<Wildcard>>
    Represents a wildcard value. Use of a <<Wildcard>> depends on the default value configured in your decision table.
    CurrentTime
    <<CurrentTime>>
    Represents a current time value. Use of a <<CurrentTime>> depends on the default value configured in your decision table.
    Invalid Objects
    <<INVALID_OBJECT>>
    None

    If an export job includes a platform object that is not accessible at the time the job runs, the export will print the string <<INVALID_OBJECT>> in the table. This string is not eligible for use when importing a decision table. Import jobs that include this string triggers a failure.