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

Contextual variables for config data

Contextual variables are out-of-the-box variables delivered by ServiceNow that enable you to use the context of a node to define a variable.

Important: Starting with the Washington D.C. release, DevOps Config is being prepared for future deprecation. It will be hidden and no longer activated on new instances but will continue to be supported.

For example: CollectionA has defined these variables:

  • "environment": "(#DEPLOYABLE.ENVIRONMENT_TYPE#)"
  • "deployable": "(#DEPLOYABLE.NAME#)"

When you add the collection to a deployable, these variables are set to the values defined in the context, which would be the environment type and name of the deployable for CollectionA.

The available out-of-the-box contextual variables are:

VariableDescription
NAMEName of the node.
APPLICATION.NAMEName of the application.
DEPLOYABLE.NAMEName of the deployable.
DEPLOYABLE.ENVIRONMENT_TYPEEnvironment type of the deployable.
COLLECTION.NAMEName of the collection.
FULL_PATHThe full file path of the collection.
RELATIVE_PATHThe file path of the collection, relative to the deployable.
RELATIVE_PARENT_PATHThe file path of the parent to the node.

Parent Topic:CDM data model