Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Useful shortcuts in Pattern Designer

There are several shortcuts that make entering values in Pattern Designer easier.

Table 1. Useful shortcuts in Pattern Designer
To Do this Example
Enter constant values, a string Enclose the value in quote marks ("). Enter the path with quote marks (") at the beginning and at the end of the string.

Use quote marks for strings.
Enter a value that can change, a variable Start the variable name with the dollar sign ($). Enter the variable name beginning with the dollar sign ($).

Use the dollar sign for variables.
Enter a value that can change from a variable that contains several variables Enter the variable name in the following format:

$<container_variable>.<variable>

Enter the dollar sign ($), followed by process for the container variable name, period (.), and then pid for the name of the string variable.

Use the right format for variable strings making up a compound variable.
Enter a value from the specific field in a table Enter the variable in the following format:

$tabular_variable[row number].column_name

To use the value from the second row in the instanceID column from the IfTable variable, enter $IfTable[2].InstanceID.


Example of a tabular variable
Enter values from a specific column in a table sequentially, starting from the current row Enter the variable in this format:

$tabular_variable[].column_name

To use the value from the current row in the instanceID column from the IfTable variable, enter $IfTable[].InstanceID.

Example of entering a value from a tabular variable
Enter values from a specific column in a table sequentially, starting from the first row Enter the variable in this format:

$tabular_variable[*].column_name

To use the value from the first row in the instanceID column from the IfTable variable, enter $IfTable[*].InstanceID.

Example of entering a value from a tabular variable
Note: When used in Match a condition with the Is Not Empty operator, the system extracts values from fields, even if some fields are empty.
Copy a value or a variable into a field Select the variable or the value you want to copy from the CI Attribute pane and drag it into the target field. Drag the company variable from the CI Attributes pane into the Values field.
Drag and drop.
Enter a variable using auto-complete
  1. Type the dollar character ($) and the first letters of the variable name.
  2. Select the relevant value from the list showing all currently available values that match the characters you entered.
If only one choice fits, that value is automatically entered into the field.
Variables have a $ prefix. Typing $P in a field displays a list of possible values beginning with "P".

Using auto-complete for entering values and variables
Specify complex (concatenated) values in fields Enter a value, then add a plus sign (+), and then enter another value.
Note: You can drag values and variables to create complex values.
To enter a constant value, enclose it in quote marks (").
To specify the path, use the install_directory variable and extract of the actual path connected by a plus sign (+).

Use a plus sign for complex values