---
schema_version: "1"
id: 4394d6a13f1a2dc7e829ad6b7a068c59868d394530020ad016a0c3c58d614824
title: Configure the After the Current Condition Base Price
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_task_after_current_condition_base.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_task_after_current_condition_base.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c838a65e242ffa6860b4ecbaab2af12c89a6ffd52076520e20525516030005b6
description: You can modify the base values of the fields that are used to calculate orders. You can use this user exit to manipulate the condition base, which impacts the calculation result.
products:
  - Consumer Goods
release: "264"
---
# Configure the After the Current Condition Base Price

You can modify the base values of the fields that are used to calculate orders. You can use this user exit to manipulate the condition base, which impacts the calculation result.

### 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 in <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud 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="d8331e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d8331e63 ">To configure user exits:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d8331e63 ">
              <p>CGCloud Business Admin</p>
              <p style="margin-bottom:0;">OR</p>
              <p style="margin-bottom:0;">CGCloud Retail Business Admin </p>
            </td>

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

1. From the App Launcher, find and select **User exits**.
2. Click **New**.
3. From the Type dropdown list, select **Configure After Calculation Result**.
4. Click **Save**.
5. On the Related tab, click **New**.
    
    Use multiple user exit content records to structure the code. For example, structure the content so that one record holds the return variable name and the start of the switch statement. Use another record to hold the logic for the different user exit IDs, and another record to return the result or variable.
6. Enter the query.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <thead class="slds-text-title_caps ">
              <tr><th class="slds-cell-wrap" scope="col" id="d8331e148">Sort Order</th>
              <th class="slds-cell-wrap" scope="col" id="d8331e151">User Exit Content</th>
              <th class="slds-cell-wrap" scope="col" id="d8331e154">Description</th>
            </tr></thead>
            <tbody><tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d8331e148">1</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d8331e151">
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-html">var ModifiedBases = {};

switch(UserExitId) {
</code></pre>
              </td>
              <td class="slds-cell-wrap" data-label="Description" headers="d8331e154">
                <p>Declaring return variable and start of the switch statement</p>
              </td>
            </tr>
            <tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d8331e148">2</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d8331e151">
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-html">case "100_Base_BasePrice_ext":

    if(Utils.isDefined(ProductAttributes[0].text1) &amp;&amp; ProductAttributes[0].text1 === "Empower Cola 1,0 L PET"){
      ModifiedBases.cBase = 10;
    }
    break;
</code></pre>
              </td>
              <td class="slds-cell-wrap" data-label="Description" headers="d8331e154">Logic
                that
                handles the user exit id “100_Base_BasePrice_ext”</td>
            </tr>
            <tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d8331e148">3</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d8331e151">
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-html">}
return ModifiedBases;
</code></pre>
              </td>
              <td class="slds-cell-wrap" data-label="Description" headers="d8331e154">Closing the switch statement and returning the return variable</td>
            </tr>
          </tbody></table>
7. From the App Launcher, find and select **Calculation Schemas**.
8. Select a calculation schema, and click **Edit**.
9. In the Calculation Schema Steps section, select a calculation step to apply to this user exit. For example, the above user exit content is for case step 100.
10. In the User Exit section, enter the user exit ID to apply to the calculation. For example, the user exit ID for case step 100 is 100\_Base\_BasePrice\_ext.
11. Click **Save**.