SharingReason
Use SharingReason to create, update, or delete sharing reason definitions for a custom object. This type extends the Metadata metadata type and inherits its fullName field.
Version
Sharing reasons are available in API version 14.0 and later.
Fields
| Field | Field Type | Description |
|---|---|---|
| fullName | string | Required. Sharing reason name. The __c suffix is appended to
custom sharing reasons. Inherited from Metadata, this field is defined in the WSDL for this metadata type. It must be specified when creating, updating, or deleting. See createMetadata() to see an example of this field specified for a call. |
| label | string | Required. Descriptive label for the sharing reason. Maximum of 40 characters. |
Declarative Metadata Sample Definition
The definition of a sharing reason in a custom object:
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
. . .
<sharingReasons>
<fullName>recruiter__c</fullName>
<label>Recruiter</label>
</sharingReasons>
. . .
</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.