---
sourceDocument: Australia IT Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/it-service-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Define or update a collection in an application

# Define or update a collection in an application {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read  
Define or update a collection while working in a changeset of a application.

## Before you begin

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.

Role required: cdm_editor or cdm_admin

## About this task

Important:  
Save your changes whenever you are confident of the changes and before you leave the Config data tab.

## Procedure

1. To add a collection to the application: While working in a changeset, select the more actions icon (![More actions icon.]()) for the collection node and select Create collection.
2. To edit individual data items, you can either work directly in the code or select the more actions icon (![More actions icon.]()) for an item and select an action, as follows.

   | Selection | Action |
   | Create collection | Add an individual component to the collection. |
   | Create CDI | Add an individual config data item (CDI) and value to the collection. See the instructions in the next step. The CDI can have an explicit value or it can be a variable, override, or overlay. * Variable: The value for this CDI will set the value for an identically-named CDI in an included component. * Override: The value for this CDI will override the value for an identically named CDI in an included component. You can also override inherited nodes and CDIs from the child collection. Overridden nodes and CDIs are labeled as Overridden Inherited. * Overlay: A CDI that does not appear in any included component. {#cdm-collection-define__ul_onp_dtq_5pb} |
   | Inherit from collection | Automatically inherit changes from another collection. When you select the check box and then specify a Collection, changes you make in the specified parent collection are reflected in all child collections. Select Remove inheritance to remove the existing hereditary relationship from a collection. Note: Inheritance is considered invalid when: * Circular, where the parent and child both inherit from each other. * There are more than the maximum number of collections in a chain. This number is 5 by default. Example: Collection1 is inherited by Collection2. Collection2 is inherited by Collection3. This chain of inheritance cannot continue to Collection6. You can change the valid chain length by editing the sn_cdm.max_inheritance_chain_length system property. {#cdm-collection-define__ul_j4x_thk_d1c} |
   | Include in deployables | Include the selected collection in specified deployables. In the Include in deployables dialog box, select the deployables that should include the collection and then select Include. Note: Only deployables that do not currently include the collection appear in the list. |
   | Rename | Rename the selected collection. |
   | Delete | Delete the selected collection. |
   | Details | View the administrative information associated with the collection. |
   | View relationships | View direct relationships with the node. Direct relationships are formed between nodes by inheritance or by being included. |
   |-|-|

   {#cdm-collection-define__choicetable_hkz_r4h_tpb}
3. Add a CDI: Select the more actions icon (![More actions icon.]()) for the item and select Create CDI.  
   {#cdm-collection-define__table_h53_jmt_spb__entry__2}

   |   |   |
   |-|-|
   | Name | Unique and meaningful name for the CDI. |
   | Value | Value that the CDI has in the current context or define a variable. * You can specify a direct `key : value` pair. * You can define a variable and specify its default value. Variable definitions have the following form: @@<variableName>@@: <value> * You can specify a value for a variable using the following form: "<variableName>": "<value>" * You can specify a contextual variable. These are variables defined out-of-the-box that use the context of the node to set the variable value. The variable uses the following form: "<variableName>": "(#<value>#)" * You can use recursive variables for a CDI value. Recursive variables use other variable values as parameters to set the CDI value. For example, each of these CDI values can resolve the same due to recursive variables: cdi1: @(favorite_food/@(person)@)@ cdi2: @(favorite_food/@(john)@)@ cdi3: waffles {#cdm-collection-define__ul_hq3_pp4_kqb} |
   | Encrypted | Option to specify that the value of the CDI should be encrypted. This option appears only for users with the CDM Secrets \[sn_cdm.cdm_secrets\] role. After you create the CDI, the value appears in all views as `*******`. To view the value on any tab that displays the CDI, users with the CDM Secrets \[sn_cdm.cdm_secrets\] role can select the View encrypted data menu option. |
   [Table 1. Create CDI]

   {#cdm-collection-define__table_h53_jmt_spb}
4. **Optional:** Add CDI settings that will override or overlay settings in collections.  
   For more information, see [Define or update a component](https://servicenow-prod.fluidtopics.net/BKH7Lv5UIFJS3sHhuxgAEQ "Define or update a component while working in a changeset.").
**Related concepts**   

* [Viewing and editing config data](https://servicenow-prod.fluidtopics.net/wDuynY3CbIbMdsnLrXip4Q "You can update the config data of an application by creating or opening a changeset on the Config data tab, where you update the structure and CDIs of the config data.")
* [How encrypted data is handled](https://servicenow-prod.fluidtopics.net/p_LEFc65xiD27KHPQdknvg "By default, encrypted values appear in all views as *******. Only users with the CDM Secrets [sn_cdm.cdm_secrets] role can view, create, update, and delete encrypted values in config data. The system validates and exports encrypted data appropriately.")  
**Related tasks**   

* [Create or update a variable CDI](https://servicenow-prod.fluidtopics.net/Sko5ZMaeeX_bDg4fL_WICA "Define variables and set their values in components, collections, and deployables.")  
**Related reference**   

* [CDM data model](https://servicenow-prod.fluidtopics.net/ZN7eqYO5WCjS4cDDgfQaQQ "The CDM data model is a standardized data structure that supports the broader life cycle of software delivery — automation, quality validation, and CSDM. CDM imports existing config data, validates it using policies that you define, and exports valid config data to your organization's existing DevOps pipeline to implement applications, services, and infrastructure.")

