---
schema_version: "1"
id: 5e8c09348c81192008b253ed13ab4877e02d70f97a5ad256ef44bc4d1ffa688f
title: Populate Hash Values in the Complex Pricing Condition Object
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_task_admin_update_pricing_condition_object.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_task_admin_update_pricing_condition_object.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 40a5c4162a5cfc21247e3a101d4ea67590e3acc0ef83ea8dfec1f8bb29c09e84
description: To populate or update the correct hash values (merge key, pricing condition template, and key type) in the TemplateKeyTypeMergedKeyHash__c column for pricing condition records, run the manual batch process. This process is a one-time activity.
products:
  - Consumer Goods
release: "264"
---
# Populate Hash Values in the Complex Pricing Condition Object

To populate or update the correct hash values (merge key, pricing condition template, and key type) in the `TemplateKeyTypeMergedKeyHash__c` column for pricing condition records, run the manual batch process. This process is a one-time activity.

### 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="d103305e65">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d103305e65 ">To update the complex pricing condition object:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d103305e65 ">
              <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 Setup, select **Developer Console**.
2. To open the Enter Apex Code window, select **Debug** | **Open Execute Anonymous Window**.
3. Enter this code.
    
    ```html
    Database.executeBatch(new cgcloud.PricingConditionsHashPopulateBatch(), 100);
    ```
4. Click **Execute**.
5. Select **Open Log** to view the log in the Log Inspector.
    
    After the code runs, the debug log is listed on the Logs tab. To view the log details, double-click the log.