---
schema_version: "1"
id: dfc52c5a6c7ce32086a2a6774297f377ff7a4e14b817b0aad3c8650214f67411
title: Clone a Context Definition
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/context_service_clone_context_definitions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.context_service_clone_context_definitions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 611da99b4644ae41a391a0d81542471a57f7fc870b6514d5323697f6a5b19734
description: When you create a context definition, manually entering attributes and tags can be time-consuming, especially if your node has several attributes. To save time, clone an existing context definition and modify it based on your requirements. When cloning an extended context definition, you can also preserve the inheritance to the parent context definition.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Clone a Context Definition

When you create a context definition, manually entering attributes and tags can be time-consuming, especially if your node has several attributes. To save time, clone an existing context definition and modify it based on your requirements. When cloning an extended context definition, you can also preserve the inheritance to the parent context definition.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Developer</strong>, <strong>Enterprise</strong>, <strong>Professional</strong>, and <strong>Unlimited</strong> editions for Industries clouds where Context Service is enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d4825e72">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e72 ">To clone context definitions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e72 ">Context Service Admin</td>

          </tr>
        </tbody>
      </table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small " summary="Differences Between Cloning and Extending a Context Definition">
        <caption>Differences Between Cloning and Extending a Context Definition</caption>
        <colgroup>
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
          <col style="width:33.33333333333333%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d4825e111">FEATURE</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d4825e114">CLONE CONTEXT DEFINITION</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d4825e117">EXTEND CONTEXT DEFINITION</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="FEATURE" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e111 ">Applicable To</td>

            <td data-label="CLONE CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e114 ">Both Standard and Custom Definitions</td>

            <td data-label="EXTEND CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e117 ">Only Standard Definitions</td>

          </tr>
          <tr class="">
            <td data-label="FEATURE" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e111 ">Upgrades</td>

            <td data-label="CLONE CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e114 ">
              <p>Not available for standard definitions (no automatic upgrades)</p>
              <p style="margin-bottom:0;">Available for
                clones of extended definitions with <strong class="uicontrol">Preserve Inheritance</strong>
                enabled. </p>
            </td>

            <td data-label="EXTEND CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e117 ">Available (Auto upgrade and Sync Now option available)</td>

          </tr>
          <tr class="">
            <td data-label="FEATURE" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e111 ">Customizations</td>

            <td data-label="CLONE CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e114 ">Customizable (can edit, delete, or add components)</td>

            <td data-label="EXTEND CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e117 ">Only additive changes are allowed (to add new components)</td>

          </tr>
          <tr class="">
            <td data-label="FEATURE" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e111 ">Editing Standard Components</td>

            <td data-label="CLONE CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e114 ">Edit or delete components, including standard components</td>

            <td data-label="EXTEND CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e117 ">Can't edit or delete standard components</td>

          </tr>
          <tr class="">
            <td data-label="FEATURE" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e111 ">Use Case</td>

            <td data-label="CLONE CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e114 ">Full flexibility for creating a custom definition</td>

            <td data-label="EXTEND CONTEXT DEFINITION" class="slds-cell-wrap" style="vertical-align:top;" headers="d4825e117 ">Customization on top of the Standard Definition, while preserving all the
              standard components</td>

          </tr>
        </tbody>
      </table>

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-context_service-264-0-0-production-enus/e9dc37f3-cb53-4bc1-be8b-b6873099d0be/images/icon_important.png)

Important The newly cloned context definitions show the same active or inactive state as the context definition from which it's cloned.

While cloning an extended definition, if **Preserve Inheritance** is selected, the new clone is created in an inactive state so you can edit it before activating it.

1. From Setup, in the Quick Find box, enter Context Service, then select **Context Definitions**.
2. For the context definition that you want to clone, click ![Arrow pointing down](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-context_service-264-0-0-production-enus/e9dc37f3-cb53-4bc1-be8b-b6873099d0be/context_service/images/context_service_down_arrow_icon.png), and then select **Clone**.
3. Give your new cloned context definition a name.
4. While cloning an extended definition, to maintain the inheritance to the parent standard definition, select the **Preserve Inheritance** checkbox.
    
    When you preserve inheritance, your cloned definitions, including all custom nodes, attributes, and mappings, remain eligible for upgrades in future releases.
5. Save your changes.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-context_service-264-0-0-production-enus/e9dc37f3-cb53-4bc1-be8b-b6873099d0be/images/icon_note.png)
    
    Note Definitions that are cloned from a standard definition aren’t auto upgraded.

#### See Also

- [View, Edit, and Delete Saved Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_view_edit_saved_context_definitions.htm&release=264.0.0&type=5 "Extend or clone a standard definition, or clone a custom definition and modify it to meet your requirements. All your context definitions are listed on the Context Definitions page, under the Custom Definitions and Standard Definitions tabs. The Custom Definitions tab shows the definitions created by the customer, and the Standard Definitions tab shows the definitions available with the product.")
- [Context Service Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.industries_reference.meta/industries_reference/context_service_overview.htm)
- [Context Service API (DELETE, GET)](https://developer.salesforce.com/docs/atlas.en-us.industries_reference.meta/industries_reference/connect_resources_context_service_runtime.htm?q=context+service)