SharingRecalculation

Represents Apex classes that recalculate the Apex managed sharing for a specific custom object.

Version 

Sharing recalculations are available in API version 14.0 and later.

Fields 

className 

  • Type: string
  • Required: Yes
  • Description: Required. The Apex class that recalculates the Apex sharing for a custom object. This class must implement the Database.Batchable interface.

Declarative Metadata Sample Definition 

The definition of a sharing recalculation in a custom object:

1<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
2. . .
3    <sharingRecalculations>
4        <className>RecruiterRecalculation</className>
5    </sharingRecalculations>
6 . . .
7</CustomObject>

Wildcard Support in the Manifest File 

This metadata type doesn’t support the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!