How to deploy Compact Layout in Salesforce using ANT tool?

How to deploy Compact Layout in Salesforce using ANT tool?

To deploy Compact Layout in Salesforce using ANT tool, include the Compact Layout, Record Type and the Profile.

Use the following sample package.xml to retrieve and deploy Salesforce Compact Layouts.

Sample Package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Task.Compact_Layout_Name</members>
        <name>CompactLayout</name>
    </types>
    <types>
        <members>Task.RecordTypeName</members>
        <name>RecordType</name>
    </types>
    <types>
        <members>ProfileName</members>
        <name>Profile</name>
    </types>
    <version>36.0</version>
</Package>

Leave a Reply