{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":32258,"path":"it-service-management/devops-family/cdm-changeset-cr-u.md","title":"Open a changeset to update config data","bundle":null,"doc_type":null,"release":"australia","body":"\n# Open a changeset to update config data\n\nUpdate config data in an existing changeset or in a new changeset. You can save your changes for later updates or save and commit the changes. Committing the changes generates a snapshot for each deployable that is affected by the changes.\n\n## Before you begin\n\n**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.\n\nRole required: cdm\\_editor or cdm\\_admin\n\n## About this task\n\n-   When you commit the changes that you have made to an application \\(commit the changeset\\), the system generates a snapshot of each deployable that has been updated. A snapshot is an exact record of the config data for a deployable. Snapshots are read-only — you cannot modify a snapshot. You can, however, start a new changeset that is based on a particular snapshot.\n-   Sometimes, another user has committed changes to a data set \\(thus creating a new snapshot\\) while you are working on a changeset of the same data. In this case, the data that you are working on is stale \\(the data is in the state it was in before the other user committed changes\\). This can result in data conflicts. Learn more about how you use changesets and how CDM manages version control at [Changesets and version control in CDM](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-changesets-version-control.md).\n\n## Procedure\n\n1.  Use one of the following methods to open a changeset for editing:\n\n    -   On the **Activity** tab for an application, select a changeset number.\n    -   On the **Overview** or **Config data** tab for an application, select **Edit Config Data**.\n    **Important:** Save your changes whenever you are confident of the changes and before you leave the **Config data** tab.\n\n    The changeset opens on the **Config data** tab.\n\n2.  In the config data tree, select the item to edit in either the script view or the list view.\n\n    By default, the Editor panel displays the script view of the key:value pairs \\(the config data items — CDIs\\) in the selected node. See [Viewing and editing config data](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-editing-config-data-changesets.md) for details on operations in the **Config data** tab.\n\n3.  Add components, collections or deployables, see the instructions in [Define or update a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-component-define.md), [Define or update a collection in an application](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-collection-define.md), and [Create and update a deployable](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-deployable-define.md).\n\n4.  Select **Save** to save the changes in the changeset and ready the changes in the changeset to be committed.\n\n    The Editor panel, List view, and Preview panel refreshes to reflect the resolved state of the changeset. The system updates the changeset but does not update the application. Changes appear on the **Activity** tab. You must commit a changeset to update the config data for the application. After saving, you can move on to other activities and return later to edit the changeset.\n\n5.  Select **Commit**.\n\n    The Commit changeset dialog box opens and lists each deployable that is affected by the changes.\n\n    **Note:** After you commit a changeset, the changeset cannot be modified.\n\n    The system generates a snapshot of each deployable that is affected by the changes. The dialog box offers the following **Additional actions**:\n\n    -   If no deployables are affected by the changes, select **No additional actions**. The system will update the application to persist the changes.\n    -   -   Select **Validate snapshots** to perform the following operations on all generated snapshots:\n    -   The system executes all policies that are statically or dynamicallymapped to the associated deployable.\n    -   If the snapshot passes all policies, then the Validation status value is set to **Passed** and no entries are listed on the **Validation Results** tab. If validation was invoked with the **Publish Valid** publish option, then valid snapshots are auto-published.\n    -   If any policy encounters issues, then the Validation status value is set to **Failed**. The **Validation Results** tab displays all failures or warnings returned by policies.\n    -   If any policy failed to run to completion, then the Validation status value is set to **Execution error** and the **Validation Results** tab indicates that validation failed due to error.\n-   Select **Validate and publish snapshots** to perform validation as described in the **Validate snapshots** action. Only snapshots that pass validation are published. Only published snapshots can be exported.\n        Select **Commit**. \n\n        -   The system updates the application to persist the changes to config data.\n        -   The changeset state changes to **Committed**.\n        -   The changeset cannot be modified.\n        -   If snapshots were created, the confirmation message includes a link to the snapshots.\n        -   If an error occurs during the commit process, the changeset state is set to Commit failed.\n\n**Related topics**  \n\n\n[Changesets and version control in CDM](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-changesets-version-control.md)\n\n[Define or update a component](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-component-define.md)\n\n[Define or update a collection in an application](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-collection-define.md)\n\n[Publish or unpublish a snapshot](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-snapshot-publish.md)\n\n[Validate a snapshot manually](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-snapshot-validate-manually.md)\n\n[View the results of snapshot validation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-validation-results-view.md)\n\n[View snapshots](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-snapshots-view-list.md)\n\n"}}