---
schema_version: "1"
id: be69c5dd9d10bc6509b4104221b21b95b97d62ac54f8b091bb237e42c1c46b9d
title: Map Custom Context Definition with Sales Transaction
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/dro_associate_custom_context_definition_with_sales_transaction_attribute.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.dro_associate_custom_context_definition_with_sales_transaction_attribute.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 65ea273cba9bfd862651351038065c70ffe9c942689b8596b2e32d89353db7cc
description: To start using a context definition, you must associate the context definition's newly created attribute with the context field in the sales transaction node.
products:
  - Revenue Cloud
release: "264"
---
# Map Custom Context Definition with Sales Transaction

To start using a context definition, you must associate the context definition's newly created attribute with the context field in the sales transaction node.

### 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: <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</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="d58492e43">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d58492e43 ">To associate an attribute with a context field:</td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d58492e43 ">
              <p style="margin-bottom:0;">DRO Admin User</p>
            </td>
          </tr>
        </tbody>
      </table>

Prerequisite: [Create Custom Context Definition and Map Attribute to Field](https://help.salesforce.com/s/articleView?id=ind.dro_create_custom_context_definition_and_map_attribute_to_field.htm&release=264.0.0&type=5 "Extend a standard definition that you want to inherit all the standard components such as nodes, attributes, and mappings. Then customize the extended definition based on your requirements by adding components to it.").

1. From Setup, in the Quick Find box, enter Context Definition Settings and select it.
2. From the Sales Transaction Context Definition header, select the newly created context definition.
3. From the context nodes list, select the SalesTransaction node, and then map the Context field for the Orchestration Group Key field node to the attribute that you created when you defined the context definition. Map other nodes from the custom context definition to the SalesTransaction nodes as required.

After the setup is complete, you can create and process orders by using the new context definition. The orders must contain the grouping key in the field that you mapped to the Orchestration Group Key. For more information on Orchestration Group Keys, see [Cross-Plan Dependencies](https://help.salesforce.com/s/articleView?id=ind.dro_cross_plan_dependencies.htm&language=en_US).