---
schema_version: "1"
id: 5fbad8d8a3105e2b3db2be03ed5602106bc9ca0d4b515cdb8e312bbd0ce005d9
title: Add a 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_task_admin_add_search_strategy_step.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_task_admin_add_search_strategy_step.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 96dd473c8eb0bc8678ca5648cdc540f0fa6593c51d3ea40f612f47a21f1b0258
description: A search strategy consists of search strategy steps to be processed in a particular sequence. The sequence is defined by the sort column in the search strategy. The strategy steps link the key types to a search strategy. A search step can be exclusive (stop if a condition is found) or non-exclusive (executes all search steps). If multiple conditions are found, the system combines all of the conditions. For example, it’s possible to collect discounts spread over hierarchy levels.
products:
  - Consumer Goods
release: "264"
---
# Add a Search Strategy Step

A search strategy consists of search strategy steps to be processed in a particular sequence. The sequence is defined by the sort column in the search strategy. The strategy steps link the key types to a search strategy. A search step can be exclusive (stop if a condition is found) or non-exclusive (executes all search steps). If multiple conditions are found, the system combines all of the conditions. For example, it’s possible to collect discounts spread over hierarchy levels.

### 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;">
              <p>Available in: Lightning Experience</p>
              <p style="margin-bottom:0;">Available in: <strong>Enterprise</strong> and
                <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled
              </p>
            </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="d50684e62">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e62 ">To create a search strategy step:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e62 ">
              <p>(CGCloud Business Admin</p>
              <p>OR</p>
              <p>CGCloud Retail Business Admin)</p>
              <p style="margin-bottom:0;">AND</p>
              <p style="margin-bottom:0;">Penny Perfect
                Pricing</p>
            </td>

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

1. From App Launcher, find and select **Search Strategies**.
2. Select a search strategy.
3. In the Search Strategy Steps related list, click **New**.
4. Provide these details:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:50%">
              <col style="width:50%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d50684e133">Field</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d50684e136">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d50684e133 d50684e136 ">Identification</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Search Strategy</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">Name of the search strategy.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Key Type</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">
                  <p>Key type that is used in a search strategy. The option has these restrictions:</p>
                  <ul>
                    <li>If the selected key type considers a customer, then you must select Customer
                      Role.</li>
                    <li>If the selected key type considers customer hierarchy, then No can't be selected in
                      the customer hierarchy search.</li>
                    <li>If No is selected in the customer hierarchy, then you must select Customer Role as
                      Orderer.</li>
                    <li>If the selected key type considers the product hierarchy, then No can't be selected
                      in the product hierarchy search.</li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Customer Hierarchy Search</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">
                  <p>Customer hierarchy that's considered for finding the condition. The options are:</p>
                  <ul>
                    <li>No: Customer hierarchy search isn't considered.</li>
                    <li>Complete: Considers the customer hierarchy (except the account selected in an order)
                      for search and combines all conditions. To include the account in the search strategy,
                      add an additional search step for the account level with the Customer Hierarchy Search
                      as No.</li>
                    <li>Customer Level 1–7: Considers the conditions of the specified customer hierarchy
                      level for search.</li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Product Hierarchy Search</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">
                  <p>Product hierarchy that's considered for finding the condition. The options are:</p>
                  <ul>
                    <li>No: Product hierarchy search isn’t considered.</li>
                    <li>Complete: Considers the complete product hierarchy (except the product) for search
                      and combines all conditions. To include the product in the search strategy, add an
                      additional search step for the product level with the Product Hierarchy Search as
                      No.</li>
                    <li>Product Level 1–5: Considers the conditions of the specified product hierarchy level
                      for search.</li>
                  </ul>
                  <div class="slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium">
                    <div class="slds-media slds-media_responsive">
                      <div class="slds-media__figure"><span class="slds-icon_container slds-icon_container_circle slds-icon-note-note"><img style="margin-bottom:0;" src="https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-consumer_goods_retail_admin-264-0-0-production-enus/5bb7d7f5-119d-42d0-8596-95e762837019/images/icon_note.png" alt="Note"></span></div>
                      <div class="slds-media__body" style="padding-top:.5rem;padding-bottom:.5rem;"><span class="slds-text-title_caps">Note</span> Set this field to No when both Consider Reward and Product or Product Hierarchy
                        are selected for the key type assigned to the search strategy step.</div>
                    </div>
                  </div>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Customer Role </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">
                  <p>Customer role that's relevant to a search condition. The options are:</p>
                  <ul>
                    <li>Orderer: Orders a product.</li>
                    <li>Delivery Recipient: Receives a product.</li>
                    <li>Payer: Pays for the order.</li>
                    <li>Bill To: Receives invoice.</li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Constraint User Exit ID</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">Unique identifier for a user exit that represents a constraint for a search strategy
                  step.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Exclusive</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">Indicates whether a search condition stops after finding a condition.</td>

              </tr>
              <tr class="">
                <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e133 ">Sort</td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d50684e136 ">Sorting definition to sort the list of search strategy steps.</td>

              </tr>
            </tbody>
          </table>
5. Save your changes.