12.07.2015 Views

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Metadata</strong> TypesCriteriaBasedSharingRuleFielddescriptionnameField TypestringstringDescriptionRepresents the description of the sharing rule. Maximumof 1000 characters.This field is available in <strong>API</strong> version 29.0 and later.Required. Name for the sharing rule. Corresponds to Labelin the user interface.UserCriteriaBasedSharingRuleRepresents a criteria-based sharing rule for users. It extends the CriteriaBasedSharingRule metadata type and inherits itscriteriaItems field.UserCriteriaBasedSharingRule is used by the criteriaBasedRules field in UserSharingRules.FieldbooleanFilterdescriptionField TypestringstringDescriptionRepresents the filter logic of the sharing rule.Represents the description of the sharing rule. Maximumof 1000 characters.This field is available in <strong>API</strong> version 29.0 and later.nameuserAccessLevelstringShareAccessLevelReadEdit(enumeration of type string)Required. Name for the sharing rule. Corresponds to Labelin the user interface.Required. A value that represents the type of allowedsharing. The possible values are:• Read• EditDeclarative <strong>Metadata</strong> Sample DefinitionThe following is the definition of two owner-based sharing rules and one criteria-based sharing rule containing two criteriaitems. The file name corresponds to the Account.sharingRules file under the accountSharingRules directory.G1Dev_G2NewG2NewG1DevReadNoneReadG2New_R1NewR1NewG2NewEditReadEdit167

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!