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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Deploying and Retrieving <strong>Metadata</strong>Sample package.xml Manifest FilesCaseLeadAssignmentRules30.0The following sample package.xml manifest file illustrates how to access just the “samplerule” Case assignment rule andthe “newrule” Lead assignment rule. Notice that the type name is AssignmentRule and not AssignmentRules.Case.sampleruleLead.newruleAssignmentRule30.0Similarly, for accessing individual auto-response rules and escalation rules, use AutoResponseRule and EscalationRuleinstead of AutoResponseRules and EscalationRules.Managed Component AccessIn <strong>API</strong> version 29.0 and later, you can retrieve and deploy access settings for the following managed <strong>com</strong>ponents in profilesand permission sets:• Apex classes• Custom field permissions• Custom object permissions• External data sourcesWhen retrieving and deploying managed <strong>com</strong>ponent permissions, specify the namespace followed by two underscores. Wildcardsare not supported.For example, let’s say you install a managed package with the namespace MyNamespace and the custom objectJobRequest__c. To set object permissions for JobRequest__c in the package to the custom profile MyProfile, you wouldadd the following to the .profile file.To deploy:truetruetruetruefalsefalseMyNamespace__JobRequest__cTo retrieve:MyNamespace__JobRequest__cCustomObjectMyProfileProfile18

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

Saved successfully!

Ooh no, something went wrong!