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> TypesWorkflowDeclarative <strong>Metadata</strong> File Suffix and Directory LocationSiteDotCom <strong>com</strong>ponents are stored in the siteDotComSites directory of the corresponding package directory. The filename for the metadata .xml file is [sitename].site-meta.xml. The file name for the site file is [sitename].siteNote: There is a file size limitation when using the <strong>Metadata</strong> <strong>API</strong> to deploy a site from test database to production.The assets in the .site file can’t be larger than 40 MB. The site gets created, but the assets show in the new site asbroken. To fix the assets, export the assets from the test database environment separately and then import them intoyour new site.VersionSiteDotCom <strong>com</strong>ponents are available in <strong>API</strong> version 30.0 and later.FieldsFieldlabelsiteTypeField Typestring(enumeration of typestring)DescriptionThe name of the site you are deploying.Required. Identifies whether the site is aChatterNetworkPicasso site for <strong>Salesforce</strong>Communities sites, or a Siteforce site forSite.<strong>com</strong> sites.Declarative <strong>Metadata</strong> Sample DefinitionSample XML definitions for SiteDotCom are shown below.testsiteSiteforcetestCommunityChatterNetworkPicassoWorkflowRepresents the metadata associated with a workflow rule. A workflow rule sets workflow actions into motion when its designatedconditions are met. You can configure workflow actions to execute immediately when a record meets the conditions in yourworkflow rule, or set time triggers that execute the workflow actions on a specific day. For more information, see “WorkflowOverview” in the <strong>Database</strong>.<strong>com</strong> Help. It extends the <strong>Metadata</strong> metadata type and inherits its fullName field. Use thismetadata type to create, update, or delete workflow rule definitions.When using a manifest file, retrieve all workflow <strong>com</strong>ponents using the following code:*Workflow170

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

Saved successfully!

Ooh no, something went wrong!