Add, edit, move, and delete input columns in a decision table
Sitecore Personalize enables you to use guest, order, and session attributes as input in a decision table. This topic describes how to add, edit, move, and delete input columns so you can manage inputs.
Add an input column to a decision table
You can add additional input columns to a decision table when you want to include new inputs in your rule. You must add a new input column before you can add new inputs.
To add an input column:
-
On the Decision Table tab,in the Input column, click Add Input Column.
-
Configure the input column using one of the following options, depending from where you want to derive the data:
Edit an input column in a decision table
You can edit an input column if you want to change the type of inputs you can enter when adding a rule. If you edit an input column that is configured to use guest data, you can change the name of the input column, the type of inputs, or where the input data is derived from. Alternatively, if you edit an input column that is configured to use JavaScript, you can follow this procedure to edit the JavaScript.
To edit an input column in a decision table:
-
On the Decision Table tab, click the Gear icon next to the header of the input column you want to edit.
-
In the Add Input Column window, click Guest Data to use guest data as input. The Add Input Column window displays for you to edit the following fields:
-
Choose Guest Data Key: Select the data key from the drop-down list.
-
Name of Column: Enter the name of the column that will display in the table.
-
Choose Type: Select the data type from the drop-down list. Later when you add rules, the data that you enter in this column must be the selected data type.
Click Add.
-
-
Alternatively, click Script to use JavaScript as input. Edit or verify the name of the input column, click Add, and edit the JavaScript in the editor, as required.
-
Click Save.
Move an input column in a decision table
You can move an input column in a decision table if you want to rearrange the order of the input columns. The order of the input columns does not affect how Sitecore Personalize evaluates the rule.
To move an input column:
-
On the Decision Table tab, click and drag the input column to the new destination.
-
Click Save.
Delete an input column from a decision table
You can delete an input column from a decision table when you are certain you no longer require the inputs captured in that column.
To delete an input column:
-
On the Decision Table tab, click the Trash icon next to the Input Column you want to delete.
-
In the confirmation dialog, click Delete. You return to the Decision Table tab. The Input Column is deleted.