Wednesday, 17 March 2021

Sample package.xml

 Hi,

Here we are going to learn how to build package.xml with different components.


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>*</members>
        <name>ApexClass</name>
    </types>

    <types>
        <members>*</members>
        <name>ApexPage</name>
    </types>

    <types>
        <members>*</members>
        <name>ApexTrigger</name>
    </types>

    <types>
        <members>*</members>
        <name>AuraDefinitionBundle</name>
    </types>

    <types>
        <members>*</members>
        <name>CustomApplication</name>
    </types>

    <types>
        <members>*</members>
        <name>CustomField</name>
    </types>

    <types>
        <members>*</members>
        <name>CustomLabels</name>
    </types>

    <types>
        <members>*</members>
        <name>CustomObject</name>
    </types>

    <types>
        <members>*</members>
        <name>CustomTab</name>
    </types>
    <types>
        <members>EmailTemplateFolderName</members>
        <members>EmailTemplateFolderName/TemplateName</members>
        <members>EmailTemplateFolderName/TemplateName</members>
        <name>EmailTemplate</name>
    </types>

    <types>
        <members>*</members>
        <name>FlexiPage</name>
    </types>

    <types>
        <members>*</members>
        <name>Flow</name>
    </types>

    <types>
        <members>*</members>
        <name>GlobalValueSet</name>
    </types>

    <types>
        <members>*</members>
        <name>Layout</name>
    </types>

    <types>
        <members>*</members>
        <name>ListView</name>
    </types>

    <types>
        <members>*</members>
        <name>Profile</name>
    </types>

    <types>
        <members>*</members>
        <name>QuickAction</name>
    </types>

    <types>
        <members>*</members>
        <name>StaticResource</name>
    </types>

    <types>
        <members>*</members>
        <name>Workflow</name>
    </types>

    <types>
        <members>*</members>
        <name>WorkflowAlert</name>
    </types>
    <types>
        <members>DasboardFOlderName</members>
        <members>DasboardFOlderName/Dasboard1</members>
        <members>DasboardFOlderName/Dasboard1</members>
        <name>Dashboard</name>
    </types>
    <types>
        <members>ReportFolderName</members>
        <members>ReportFolderName/ReportName1</members>
        <members>ReportFolderName/ReportName2</members>        
        <name>Report</name>
    </types>
      <types>       
        <members>*</members>
        <name>ReportType</name>
    </types>    
     <types>
        <members>MyDocumentFolder/MyDocumentName</members>
        <name>Document</name>
    </types>
    <version>50.0</version>
</Package>


Reference:

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_folder.htm

No comments:

Post a Comment

What’s the difference between Einstein Article Recommendations and Suggested Articles?

How Does Einstein Article Recommendations Work? Einstein Article Recommendations helps support agents resolve customer cases efficiently by ...