---
schema_version: "1"
id: e9569d155ede01192ceaeea0106edcdbd49b786749898b8fbd6fde978bce0b08
title: Extend the Sales Transaction Context Definition for Multisite
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/ene_extend_sales_transaction_multisite.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.ene_extend_sales_transaction_multisite.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 51594312d94771800b291afdcd1e73f2558c1e3ba583f276f3d47e4d54e70552
description: Extend the standard context definition to include custom attributes for sales transactions and map them to Quote and Order objects.
products:
  - Energy and Utilities
release: "264"
---
# Extend the Sales Transaction Context Definition for Multisite

Extend the standard context definition to include custom attributes for sales transactions and map them to Quote and Order objects.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></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>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="d44099e70">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d44099e70 ">To create user profiles and users:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d44099e70 ">Energy &amp; Utilities Cloud Features</td>

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

1. Navigate to Context Definitions.
    1. From **Setup**, in the **Quick Find** box, enter Context Definitions, and then select **Context Definitions**.
    2. On the **Standard Definitions** tab, find **SalesTransactionContext**.
2. Extend the standard context definition. Skip this step if you've already created a context definition with the name EUSalesTransactionContext.
    1. Select the dropdown arrow next to **SalesTransactionContext**, and then select **Extend**.
        
        The **Extend Context Definition** modal opens.
    2. For Name, enter EUSalesTransactionContext, and then click **Save**.
        
        Wait for the custom context definition to be created.
3. Add custom attributes to the context definition.
    1. Select the **Custom Definitions** tab and select **EUSalesTransactionContext**.
    2. Select **Edit** and then click **Next** until you reach the attributes section.
    3. Under the **SalesTransactionItem** node, add these attributes:
        
        - **DistributionArea** (Type: INPUT OUTPUT, Data Type: String)
        - **EstimatedConsumption** (Type: INPUT OUTPUT, Data Type: Number)
        - **ConstraintEngineNodeStatus** (Type: INPUT OUTPUT, Data Type: String)
    4. Select **Next** and enter the tags for the new attributes:
        
        - For DistributionArea, enter DistributionArea\_\_c.
        - For EstimatedConsumption, enter EstimatedConsumption\_\_c.
        - For ConstraintEngineNodeStatus, enter ConstraintEngineNodeStatus\_\_c.
    5. Save the attributes.
4. Map the custom attributes to Quote fields.
    1. Click the **Map Data** tab.
    2. Find **QuoteEntitiesMapping**, click the dropdown arrow, and select **Edit SObject Mapping**.
    3. Select the **Mark as Default** checkbox and select **Map**.
    4. Under the **QuoteLineItem** SObject, next to **QuoteLineItemRecipientId**, click the **+** icon and select the **DistributionArea** and **EstimatedConsumption** fields.
    5. Map the attributes as follows:
        
        - Map **SalesTransactionItem.DistributionArea** to **QuoteLineItem.QuoteLineItemRecipient.DistributionArea**.
        - Map **SalesTransactionItem.EstimatedConsumption** to **QuoteLineItem.QuoteLineItemRecipient.EstimatedConsumption**.
        - Map **SalesTransactionItem.ConstraintEngineNodeStatus** to **QuoteLineItem.ConstraintEngineNodeStatus\_\_c**.
    6. Save the new mappings.
5. Map the custom attributes to Order fields and activate the definition.
    1. Return to the **Map Data** tab.
    2. Find **OrderEntitiesMapping**, click the dropdown arrow, and select **Edit SObject Mapping**.
    3. Under the **OrderItem** SObject, next to **OrderItemRecipientId**, select the **+** icon and select **DistributionArea** and **EstimatedConsumption**.
    4. Map the attributes as follows:
        
        - Map **SalesTransactionItem.DistributionArea** to **OrderItem.OrderItemRecipient.DistributionArea**.
        - Map **SalesTransactionItem.EstimatedConsumption** to **OrderItem.OrderItemRecipient.EstimatedConsumption**.
        - Map **SalesTransactionItem.ConstraintEngineNodeStatus** to **OrderItem.ConstraintEngineNodeStatus\_\_c**.
    5. Save the context definition and return to the definition details tab.
    6. Activate the context definition.