---
schema_version: "1"
id: 2f24aacb51c264fa57f1014097c9e58208737ec6ba1fc05cdb6b4f769f5b1c11
title: Transform a Context Definition
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/ctx_transform_with_dpe.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.ctx_transform_with_dpe.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 19a940512620724851d958ff0d37a1ac30e4325379bb8ddc712d06d333024aef
description: Reshape your context definition with Data Processing Engine into a specific structure required for Document Generation. Using the transformed data, you can generate documents like contracts, proposals or invoices.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Transform a Context Definition

Reshape your context definition with Data Processing Engine into a specific structure required for Document Generation. Using the transformed data, you can generate documents like contracts, proposals or invoices.

### 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="d3036e72">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d3036e72 ">To create context definitions:</td>

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

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d3036e72 ">To generate and use transformed context definitions in JSON format:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d3036e72 ">DocGen Designer with Admin Persona</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d3036e72 ">To configure a Data Processing Engine definition with on-demand processing:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d3036e72 ">Run Data Processing Engine Definitions On Demand</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d3036e72 ">To access Data Processing Engine definitions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d3036e72 "><a href="https://help.salesforce.com/s/articleView?id=ind.dpe_setup.htm&amp;language=en_US&amp;type=5" target="_blank">View permissions information.</a></td>

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

- To transform and view transformed definition data as a JSON, in addition to Context Service, your org must have Salesforce Document Generation, Data Processing Engine and Data Processing Engine On Demand access.
- The Transforms Available checkbox must be set to True for the context definition during its creation.

To transform a context definition:

1. From Setup, in the Quick Find box, find and select Context Definitions.
2. Select the context definition that you want to transform.
3. Select the **Transform** tab.
4. Click **New Transform**.
5. Add a name and description to the transform, then click **Proceed**.
    
    A Data Processing Engine window appears, where a transformation definition is created using the Context Service process type and includes the chosen context definition as its data source.

After processing, the data is transformed back into a specific JSON format that can be used by Document Generation.

#### See Also

- [Integrate Data Processing Engine with Context Service](https://help.salesforce.com/s/articleView?id=ind.dpe_integrate_context_service.htm&language=en_US)