---
schema_version: "1"
id: c607fb62d8f0f63ab38317f1b6dc5418c7974020949897f7e751be7a9faa2653
title: Rule Fields in B2C Commerce Einstein
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/cc/264-0-0/b2c_recommender_rule_fields.md
canonical_url: https://help.salesforce.com/s/articleView?id=cc.b2c_recommender_rule_fields.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: dd8ad0e3f984cec9852f99e8a128bfe7189addf88e1d3ae36adb79abafb08733
description: You use rule fields to define rules. Some rule fields appear only for certain recommenders, and other rule fields appear for all recommenders.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Rule Fields in B2C Commerce Einstein

You use rule fields to define rules. Some rule fields appear only for certain recommenders, and other rule fields appear for all recommenders.

This table shows the different field and action options when creating rules and their supported recommenders.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:33.33333333333333%">
        <col style="width:33.33333333333333%">
        <col style="width:33.33333333333333%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d181165e41">Field</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d181165e44">Description</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d181165e47">Supported Recommenders</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e41 ">Select Anchor Field...</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e44 ">
            <p>The anchor field uses the category and attributes available within
              the product catalog that is assigned to the site.</p>
            <p>Einstein compares
              the anchor field and the anchor value to each recommended product
              returned by the recommender's strategies. If the recommended
              product's field value matches the value in the anchor field, the
              system applies the remainder of the rule and executes the specified
              action, if appropriate.</p>
            <p style="margin-bottom:0;">If you select <em>Any Product</em> as
              the anchor field, you can't specify an anchor value. In this case,
              all products count as matches, causing the system to apply the
              remainder of the rule and, if appropriate, execute the specified
              action.</p>
          </td>

          <td data-label="Supported Recommenders" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e47 ">Product to Product</td>

        </tr>
        <tr class="">
          <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e41 ">Select Anchor Value...</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e44 ">
            <p>The anchor value uses the category and attributes metadata assigned
              to products within the catalog that is assigned to the site.</p>
            <p>Value
              assigned to the Anchor field.</p>
            <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-cc-b2c_merchandiser_administrator-264-0-0-production-enus/ea76f372-6cfa-42a6-8e7c-05c6df7abed8/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> This field doesn’t appear for
                  <em>Any Product</em> anchor fields.
                </div>
              </div>
            </div>
          </td>

          <td data-label="Supported Recommenders" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e47 ">Product to Product</td>

        </tr>
        <tr class="">
          <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e41 ">Select Action...</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e44 ">Defines the rule action (show, hide, promote, or demote).</td>

          <td data-label="Supported Recommenders" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e47 ">All</td>

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

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e44 ">
            <p>Compares this field, and any field values that you select in the
              <strong class="uicontrol">Select Values...</strong> field, to each recommended
              product returned by the recommender's strategies.
            </p>
            <p style="margin-bottom:0;">If the recommended
              product's field matches the selected field values, the system
              executes the associated action.</p>
          </td>

          <td data-label="Supported Recommenders" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e47 ">All</td>

        </tr>
        <tr class="">
          <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e41 ">Select Values...</td>

          <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e44 ">Specifies one or more values for the field you selected in
            <strong class="uicontrol">Select Field...</strong>.
          </td>

          <td data-label="Supported Recommenders" class="slds-cell-wrap" style="vertical-align:top;" headers="d181165e47 ">All</td>

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