Import and export decision table data
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
- 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:
- Click Menu > Orchestration > Rule-Based Decisions > Decision Tables.
- Select the decision table that you want to update.
- Click Import.
- 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.
- 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
- All times are per UTC
Export decision table data
- 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.
- Click Menu > Orchestration > Rule-Based Decisions > Decision Tables.
- Select the decision table that you want to export.
- Click Export.
- Select the export file format.
- 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.
- When the export completes, download the export file.
View import and export history
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 from32to40, the imported row uses40. - 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, valueis exported as"my, csv, value".
- String values that contain commas are enclosed in double quotation marks so that the comma is not interpreted as a field separator; for example,
- Any other value is imported as-is.
Use the exact capitalization shown in the following table.
| Special field values in the import and export file | Format used when exported | Acceptable formats when importing | Import behavior and notes |
|---|---|---|---|
| Default | <<Default::value>> | Blank field or cell, such as | 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. |
[NEXT] Was this article helpful?
Get user feedback about articles.