---
schema_version: "1"
id: ff81b5c6489a062406884e80a8b272f3ce18bc75abc6334ba77124326e22e1e2
title: Generate Global Keys
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_generate_global_keys.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_generate_global_keys.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: bb7766de7f0fd70e86faa15b77679d077402ef137ae73bbde3a9737ed43eed80
description: This job creates any missing global keys and assigns them to the correct records.
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# Generate Global Keys

This job creates any missing global keys and assigns them to the correct records.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col>
        <col>
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d345745e32">
            <p style="margin-bottom:0;">Applies to</p>
          </th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d345745e38">
            <p style="margin-bottom:0;">Summer '17 and later</p>
          </th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e32 ">
            <p style="margin-bottom:0;">Apex Name</p>
          </td>

          <td data-label="Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e38 ">
            <p style="margin-bottom:0;">
              <code>GenerateMatchingGlobalKeyBatch</code>
            </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e32 ">
            <p style="margin-bottom:0;">Where to Run this Job</p>
          </td>

          <td data-label="Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e38 ">
            <p style="margin-bottom:0;">CMT Administration tab</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e32 ">
            <p style="margin-bottom:0;">Risks of Running This Job</p>
          </td>

          <td data-label="Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e38 ">
            <p style="margin-bottom:0;">None</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e32 ">
            <p style="margin-bottom:0;">When Not to Run This Job</p>
          </td>

          <td data-label="Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e38 ">
            <p style="margin-bottom:0;">N/A</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e32 ">
            <p style="margin-bottom:0;">When to Run This Job</p>
          </td>

          <td data-label="Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e38 ">
            <ul>
              <li>
                <p>If you find any global keys missing.</p>
              </li>

              <li>
                <p>After upgrading ​Salesforce Industries
                  Communications, Media, and Energy, but before running any
                  other job, to generate any missing global keys for records.</p>
              </li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Applies to" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e32 ">
            <p style="margin-bottom:0;">More Information</p>
          </td>

          <td data-label="Summer '17 and later" class="slds-cell-wrap" style="vertical-align:top;" headers="d345745e38 ">
            <p>DataPacks use global keys to transfer data. The
              global keys field value provides a reference for transferring data from
              one org to another, for example, pricing elements.</p>
            <p style="margin-bottom:0;">For example, if you have a pricing element in Org A and
              want to migrate the element to Org B, assign a global key to each pricing
              element record.</p>
          </td>

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