Array Type Variables
You can create an array type in cases where you want to group together multiple objects or elements into a variable. You define the type of elements and create a variable using this type with values that fit the configured schema.
The maximum number of custom variable types (array, object, and table) allowed is 200 total per organization.
The system already has default array types for base data types such as string, date, integer, decimal, and boolean. You can also choose an object type to handle a mix of data types in your array.
-
Choose Automate > Variables in the navigation menu
-
Click the Variable Types tab and then click New Variable Type.
-
In the Data Type drop-down list, choose Array Type.
-
Enter a meaningful Display Name and optional Description.
-
Choose the Object Type.
-
Click Submit.
Using an array type variable is similar to any other variable type. You select your array type as the Data Type or enter its name.
-
Choose Automate > Variables in the navigation menu
-
Click the Global Variables tab and then click New Variable.
-
In the Data Type drop-down list, choose your array type or enter its name.
-
Enter a meaningful Display Name, Description, and Scope.
-
In this example, we chose the TestArrayType data type, an object type variable. In the Value field, hover over the informational tooltip to see the expected format of the object schema.
-
In this example, the object type contains strings and integers, and you would enter the values and click Format:
-
Click Submit.