---
schema_version: "1"
id: f7896f2b6c798a71e0385b6f3252e3b07387240b8851ea4e7bd606c3af5a3de5
title: Configure Expression Set Based Mapping
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/dro_configure_es_mapping.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.dro_configure_es_mapping.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b4938c6563c32bcd55d67608940ea936452507f5bcd2f8ba8afc6530260b945d
description: Use expression sets to perform complex transformations on the source product's fields and attributes and use the output variables of the expression sets to enrich the target product's fields and attributes. For example, set delivery priority in the target product based on the order value and the delivery zipcode.
products:
  - Revenue Cloud
release: "264"
---
# Configure Expression Set Based Mapping

Use expression sets to perform complex transformations on the source product's fields and attributes and use the output variables of the expression sets to enrich the target product's fields and attributes. For example, set delivery priority in the target product based on the order value and the delivery zipcode.

### 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: Salesforce Classic (not available in all orgs) and 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="d150296e69">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d150296e69 ">To configure an expression set based mapping:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d150296e69 ">
              <p>Fulfillment Designer </p>
              <p>OR</p>
              <p style="margin-bottom:0;">DRO Admin</p>
            </td>

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

Consider these recommendations for expresssion set mapping.

- Reuse expression sets for multiple mappings: To reduce performance impact during order submission, implement multiple transformations in a single expression set and reuse for multiple mappings.
- Simulate expression sets before use: To validate the expected output and achieve accurate data transformation during fulfillment, simulate the expression set in Business Rules Engine's Expression Builder with sample data before using it in mapping. See [Simulate and Activate Your Expression Set Version](https://help.salesforce.com/s/articleView?id=ind.simulate_and_activate_the_expression_set.htm&language=en_US).

Before you begin, review the initial mapping set up steps in [Define Field and Attribute Mapping](https://help.salesforce.com/s/articleView?id=ind.dro_define_field_and_attribute_mapping.htm&release=264.0.0&type=5 "Define how Dynamic Revenue Orchestrator (DRO) maps fields and attribute data between products. DRO uses this mapping to copy or transform commercial order data to the data that fulfillment systems or processes require.").

1. Create a Field & Attribute Mapping within a Decomposition Rule.
2. For Mapping Type, select **Expression Set Based Mapping**.
3. Select the expression set.
4. To view or edit the expression set in Business Rules Engine's Expression Builder, click **Source**.
5. In the Input Variables section, map at least one input variable of the expression set to a source field or attribute.
6. In the Output Variables section, map one output variable of the expression set to a target field or attribute.
7. Save your work.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-revenue-264-0-0-production-enus/91ca99c6-d5c8-4986-b961-c6b7801e0d0d/images/icon_example.png)

Example

Consider a source commercial product that has attributes ProductType, CustomerAccount, and Price.

The target technical product has a Commission Amount attribute.

An expression set, CommissionCalculation is designed to calculate the commission amount by taking in ProductType, CustomerAccount, and Price as inputs variables.

Configure the mapping from the source to the target mapping by using the CommissionCalculation expression set. Map the input variables of the expression set to the source product attributes ProductType, CustomerAccount, and Price. Map the output variable of the expression set to the Commission Amount attribute of the target product.

![Expression set list mapping](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-revenue-264-0-0-production-enus/91ca99c6-d5c8-4986-b961-c6b7801e0d0d/revenue/images/dro/dro_expressionset_map.png)

When a user submits an order with ProductType as Advanced, CustomerAccount as Priority, and Price as $12000, the target product is set with Commission Amount as $1000.

When the user submits an order with ProductType as Basic, CustomerAccount as Regular, and Price as $1200, the target product is set with Commission Amount as $100.