---
schema_version: "1"
id: 43e5c97d1a68f07916c6f4d1869d94ec79415f119d0e4a6fbd19dcc2f5ae2b71
title: SharingRecalculation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_apexsharingrecalculation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_apexsharingrecalculation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f2abbc098801193955a219b7f67666cb2bdfa0d5d65242208819802adddac93a
description: Represents Apex classes that recalculate the Apex managed sharing for a specific custom object.
---
# 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

| 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](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).

- [← Previous](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_apexsharingreason.htm "SharingReason")
- [Next →](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_validationformulas.htm "ValidationRule")