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> TypesWeblinkDeclarative <strong>Metadata</strong> Sample DefinitionA sample XML definition of a validation rule in a custom object is shown below.DeployedMommy_Cat__cMommy CatCat__cCatsLookupCatCat NameTextCatsReadWriteCatsRuletrueOR(Name = &apos;Milo&apos;,Name =&apos;Moop&apos;)Name must be that of one of my catsWeblinkRepresents a Weblink defined in a custom object. It extends the <strong>Metadata</strong> metadata type and inherits its fullName field.VersionWeblinks are available in <strong>API</strong> version 12.0 and later.FieldsThe Weblink definition contains the following fields.Field NameavailabilitydescriptiondisplayTypeencodingKeyField TypeWebLinkAvailability(enumeration of type string)stringWebLinkDisplayType(enumeration of type string)Encoding (enumeration oftype string)DescriptionRequired. Indicates whether the Weblink is only available online(online, or if it is also available offline (offline).A description of the Weblink.Represents how this Weblink is rendered.Valid values:• link for a hyperlink• button for a button• massAction for a button attached to a related listRequired. The default encoding setting is Unicode: UTF-8. Changethe default encoding setting if the target of a link requires data in adifferent format. This is available if your Content Source is URL.Valid values include:104

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

Saved successfully!

Ooh no, something went wrong!