Manage decision tables in Excel
Summarize
Summary of Manage decision tables in Excel
This guide provides instructions on how to manage decision tables in Excel, a useful method for handling large decision tables outside the ServiceNow AI Platform. It allows users to export, edit, and re-import decision tables seamlessly within Workflow Studio.
Show less
Key Features
- Exporting Decision Tables: Decision tables can be exported to Excel in .xlsx format, which includes a worksheet for the table and another for instructions.
- Editing Capabilities: Users can add, remove, edit, or reorder decision rules in Excel, while advanced rows remain read-only.
- Importing Modifications: After editing, the Excel file can be imported back into Workflow Studio, where all changes are validated before being applied.
- History Tracking: Users can view the export and import history, including timestamps and user details for each action.
Key Outcomes
By utilizing Excel for decision table management, users can efficiently build and modify large tables, streamline collaboration between developers and authors, and ensure accuracy through validation during imports. Limitations include restrictions on modifying condition and result columns, as well as specific scenarios where modifications cannot be made.
If you have large decision tables to build or want to enhance decision tables outside of the ServiceNow AI Platform, manage them in Excel. Export a decision table to an Excel file, edit the downloaded file to add and edit rows, and then import the file back into Workflow Studio.
Exporting a decision table to Excel
After creating and saving inputs, condition columns, and result columns, export a decision table to Excel in .xlsx format by selecting Export. The exported file contains two worksheets: One with the decision table and the other with instructions on how to build decision rows and prevent import errors.
Editing your decision tables in Excel can help you build large tables more quickly. It also gives you the ability to assign the structural setup to a developer, and then delegate rule authoring to someone else, who could fill it out in Excel.
Modifying the decision table in Excel
- Build conditions using the operator and value columns.
- In each Operator cell, choose the relevant operator from the drop-down list. The operator list is specific to the condition column field type.
- In each Value cell, enter or select the condition value, following the format guidance from the instructions sheet.
- When building date, due date, date/time, reference, or choice conditions, you can select a value from the drop-down list.
- Specify result values.
- In each Result cell, enter the result value.
- For reference or choice results, select a result value from the drop-down list.
- Use Excel to add, remove, or edit decision rules, but do not use Excel to add or modify condition columns or result columns.
- Edit only cells in the Condition and Result columns. During the import, any data entered to the right of these columns are ignored.
- Retain the headers in the exported file, and do not modify them in any way.
- Modify only the original exported file in Excel. Do not copy and paste the contents of an exported file into a new Excel file. However, the original file can be renamed.
- Ensure that there are no empty rows. Any entry after five consecutive empty rows is ignored.
Importing an Excel file into Workflow Studio
- Successful import: The Excel file import is successful. The Import window closes automatically, and your decision table is updated with the imported data. Save your changes before continuing.
- Failed import: The Excel file import has failed. Download the Error.xlsx file that contains the detailed description about the errors and how to fix them. After fixing the errors, follow the import process and import the corrected error file.
View export and import history
View the export and import history of a decision table in the History sidebar. Each entry displays the name of the user who imported or exported the file and the timestamp.
glide.ui.export.choice_list_max_characters property sets the maximum number of characters that will be included from a condition field type when
exporting to Microsoft Excel, as well as the maximum number of characters displayed in the list view condition builder in Core UI. This property is of type integer and has a default value of 80. To use this property, add it
to the System Property [sys_properties] table. It's important to note that this property does not affect the length of condition field values in tables.Limitations
- Decision table does not contain a conditions column.
- Decision table has unsaved changes.
- Decision table has condition columns with unsupported field types.
- Decision table has a condition column that is related to an inactive input.