---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://www.servicenow.com/docs/r/servicenow-platform

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Condition and script parameters for menu actions

# Condition and script parameters for menu actions {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

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.
{#condition-script-parameters__table_ntn_tkb_54__entry__2}

| Text | Description |
|-|-|
| item | Node or reference link's data on which you performed the right-click action. |
| item.label | Label of the node. |
| item.ci_type | CI's type (table), such as `cmdb_ci_service`. |
| item.name | Name of CIs. CI's type name or the table label. |
| item.location | Location of the CI, such as New York. |
| item.manufacturer_name | Name of the CI's manufacturer, such as Dell Inc. |
| item.id | The sys_id of the CI. |
| item.is_selected | The item that is selected in the map. |
| item.level | The current default level. |
| item.locationId | The sys_id of the CI node's location. |
| item.locationName | The full address of the location. |
| item.manufaturerId | The sys_id of the CI's manufacturer. |
[Table 1. Common Elements for Building a Condition]

{#condition-script-parameters__table_ntn_tkb_54}  
{#condition-script-parameters__table_ifh_4nb_54__entry__2}

| Condition | Description |
|-|-|
| item.is_collapsed | The node is a collapsed node. |
| item.is_cluster | The node is a cluster node. |
[Table 2. Valid Conditions for Condition Parameters]

{#condition-script-parameters__table_ifh_4nb_54}

## 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:
{#condition-script-parameters__table_l3w_n4b_54__entry__2}

| Condition | Description |
|-|-|
| item.id | The sys_id of the CI node or relationship link. |
| item.source | The sys_id of the relationship's parent or child. |
| item.target | The sys_id of the relationship's parent or child. |
| item.label | The name of the CI node, such as IronMail-SD-02. |
| item.location | The sys_id of the CI node's location. |
| item.location_name | The full address of the location, such as 4616 Clairemont Drive, North Clairemont, San Diego CA. |
| item.manufacturer_id | The sys_id of the CI's manufacturer. |
[ ]

{#condition-script-parameters__table_l3w_n4b_54}
**Related tasks**   

* [Create or modify map indicators](https://www.servicenow.com/docs/VCmUTMMtKzaBX75OIO2bvg "Dependency Views maps and application service maps, use icons to display additional information for a CI by displaying its related records such as alerts, outages, incidents and problems. These icons are called map indicator.")
* [Create or modify map icons](https://www.servicenow.com/docs/hWAI8TW2LOutkmGtZ_4PVw "Upload new icons or modify existing icons to customize the icon displayed for a CI in maps in Dependency Views, Service Mapping, and Event Management.")
* [Create a predefined filter](https://www.servicenow.com/docs/X4ktJPx80wqF063ujpXD3A "Create filters to narrow down the CIs that are displayed on a Dependency Views map. You can create filters that are based on CIs' class, CIs' attributes, or CIs' relationships.")
* [Set a predefined filter as default](https://www.servicenow.com/docs/i0wQs32XyP~un5shT6JgDA "You can set a custom predefined filter as the default predefined filter for viewing maps.")
* [Create or modify Map Related Items](https://www.servicenow.com/docs/daS5K9UF7P0AImhNRGXDdg "The Map Related Items module relates referenced CIs to one another, which allows them to be displayed in a Dependency Views map.")
* [Create or modify Dependency Views menu actions](https://www.servicenow.com/docs/y_vCWrDlwz3nCwM6D0UyTg "To modify an existing menu option, first you create a copy of the original menu action record, and then you modify the copy.")
* [Create or edit a dependency type](https://www.servicenow.com/docs/Bb1gLXL4YJB0o_Z1lw2Mdg "Use one of the dependency types provided, or create a custom dependency type with a script that will execute in real time to generate a custom view of a Dependency Views map for a specific CI.")

