Run the Account Sharing Batch Script

Run the account-sharing batch script manually to update the Sharing Criterion field values in the database.

Required Editions

Available in: Lightning Experience in Professional, Enterprise, and Unlimited Editions that have Consumer Goods Cloud enabled
User Permissions Needed
To run the account sharing batch script:

CGCloud Business Admin

OR

CGCloud Retail Business Admin

  1. From Setup, in the Quick Find box, enter Apex Classes, and select Apex Classes.
  2. Select Developer Console.
  3. Select Debug | Open Execute Anonymous Window.
  4. Enter this code:
    Database.executeBatch(new AccountSharingCriterionBatch());
  5. Click Execute.