---
schema_version: "1"
id: 9b4c257cab533c642dc5e22c9433bbe347ea8dab4696577829cbff45905ae9cc
title: Configure the Skip Current Search Strategy Step
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_admin_task_skip_current_search_strategy_step.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_admin_task_skip_current_search_strategy_step.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c29a0eceb219865a8163581042223dc5809ee4aa126bac71cdfd398cccf945ea
description: You can apply or skip the conditions for a calculation step during order calculation. This user exit is called before the calculation.
products:
  - Consumer Goods
release: "264"
---
# Configure the Skip Current Search Strategy Step

You can apply or skip the conditions for a calculation step during order calculation. This user exit is called before the calculation.

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

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d108130e63 ">
              <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 **Skip Current Search Strategy Step**.
4. Click **Save**.
5. On the **Related** tab, click **New**.
6. Enter the query.
    
    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.
    
    <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="d108130e151">Sort Order</th>
              <th class="slds-cell-wrap" scope="col" id="d108130e154">User Exit Content</th>
              <th class="slds-cell-wrap" scope="col" id="d108130e157">Description</th>
            </tr></thead>
            <tbody><tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d108130e151">1</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d108130e154">
                <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="d108130e157">
                <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="d108130e151">2</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d108130e154">
                <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="d108130e157">Logic that handles the user exit id “S101_SkipSearchStep_5_P104”</td>
            </tr>
            <tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d108130e151">3</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d108130e154">
                <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="d108130e157">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 101.
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 101 is 100\_Base\_BasePrice\_ext.
11. Click **Save**.