Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Condition and script parameters for menu actions

You can use the following condition and script parameters for menu actions.

Condition parameters

Note: The usual regular expression conventions are valid in the condition field, such as ! for NOT, && for AND, and || for OR.

The Condition field contains a boolean expression that evaluates to true or false. If the condition is true or if there is no condition, the specified option appears in the menu when you right-click a CI or a relationship link. When you select the option from the menu, ServiceNow executes the associated script.

TextDescription
itemNode or reference link's data on which you performed the right-click action.
item.labelLabel of the node.
item.ci_typeCI's type (table), such as cmdb_ci_service.
item.nameName of CIs. CI's type name or the table label.
item.locationLocation of the CI, such as New York.
item.manufacturer_nameName of the CI’s manufacturer, such as Dell Inc.
item.idThe sys_id of the CI.
item.is_selectedThe item that is selected in the map.
item.levelThe current default level.
item.locationIdThe sys_id of the CI node's location.
item.locationNameThe full address of the location.
item.manufaturerIdThe sys_id of the CI's manufacturer.
ConditionDescription
item.is_collapsedThe node is a collapsed node.
item.is_clusterThe node is a cluster node.

Script parameters

Menu action scripts are executed on the client when a user clicks the menu option. You can use the same building blocks in scripts as in conditions. Menu action scripts do not function on separators. These are some additional, useful expressions for scripts:

ConditionDescription
item.idThe sys_id of the CI node or relationship link.
item.sourceThe sys_id of the relationship's parent or child.
item.targetThe sys_id of the relationship's parent or child.
item.labelThe name of the CI node, such as IronMail-SD-02.
item.locationThe sys_id of the CI node's location.
item.location_nameThe full address of the location, such as 4616 Clairemont Drive, North Clairemont, San Diego CA.
item.manufacturer_idThe sys_id of the CI's manufacturer.

Parent Topic:Administer Dependency Views

Related topics

Create or modify map indicators

Create or modify map icons

Create a predefined filter

Set a predefined filter as default

Create or modify Map Related Items

Create or modify Dependency Views menu actions

Create or edit a dependency type