Version
Sharing recalculations are available in API version 14.0 and later.
Fields
| Field | Field Type | Description |
|---|---|---|
| className | string | 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:
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata"> . . . <sharingRecalculations> <className>RecruiterRecalculation</className> </sharingRecalculations> . . . </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.