Newer Version Available

This content describes an older version of this product. View Latest

SharingRecalculation

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

For more information, see “Recalculate Apex Managed Sharing” in the Salesforce online help.

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:

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.