Welcome to Zuora Product Documentation

Explore our rich library of product information

Change CRM IDs for Multiple Accounts Using the Zuora API

Learn how to update CRM Account IDs for multiple accounts using the Zuora API, including required permissions and settings adjustments.

To change CRM Account IDs using the Zuora API, you must:

  • Grant the required user permissions

  • Enable the History Trackingsettingfor the Account field on the Billing Account object.

We recommend that you perform a Sync Cleanup of the Accounts & Related Objects before you change CRM IDs using the API.

To view the CRM Account ID change results, the Salesforce Sync User's user profile must have the following permissions.

  • Custom Tab Settings

    • Sync Histories: Default ON

  • Custom Object Permissions

    • Sync History: View All, Modify All

To grant the Custom Object permissions to a profile

  1. Navigate to Setup > Administer > Manage Users > Profiles .
  2. Click the profile to whom you want to grant permissions.
  3. Click Edit .
  4. In the Custom Tab Setting section on the Profile Edit page, click and select Default On for Sync Histories. SyncHistoriesTab.png
  5. In the Custom Object Permissions section, select View All and Modify All for the Sync History object.
  6. Click Save .

Grant a profile access to the Apex classes

  1. Navigate to Setup > Administer > Manage Users > Profiles .
  2. Click the profile to whom you want to grant permissions.
  3. Click Enable Apex Class Access . EnableApexAccess.png
  4. In the Enabled Apex Class Access section, click Edit .
  5. Click the following classes in the Available Apex Classes list and click the Add arrow to move them to the Enabled Apex Classes list:
    • Zuora.PaymentCrmIdChangeBatchable

    • Zuora.RefundCrmIdChangeBatchable

    • Zuora.SubObjectBatchableForCrmId

    • Zuora.SubProdChargeCrmIdChangeBatchable

    • Zuora.SubscriptionCrmIdChangeBatchable

    • Zuora.ZInvoiceCrmIdChangeBatchable

    • Zuora.SyncHistoryController

  6. Click Save .

Grant a profile a access to the Visualforce pages

  1. Navigate to Setup > Administer > Manage Users > Profiles .
  2. Click the profile to whom you want to grant permissions.
  3. Click Enabled Visualforce Page Access .
  4. In the Enabled Visualforce Page Access section, click Edit .
  5. Click the following Visualforce pages in the Available Visualforce Pages list and click the Add arrow to move them to the Enabled Visualforce Pages list:
    • Zuora.CrmIdChangeResult

    • Zuora.SyncResult

  6. Click Save .

Enable History Tracking for the Account field of the Billing Account object ( Zuora__CustomerAccount__c.Account__c ). This setting supports the ability to change CRM Account IDs in bulk.