How to retrieve pagelayouts using Apache ANT tool from Salesforce?

How to retrieve pagelayouts using Apache ANT tool from Salesforce?

Sample Package.xml:


<?xml version=”1.0″ encoding=”UTF-8″?>
<Package xmlns=”http://soap.sforce.com/2006/04/metadata”>    
<types>
        <members>Account-Account Layout</members>
<members>Contact-Contact Layout</members>
        <members>Employee__c-Employee Layout</members>
        <name>Layout</name>
    </types>
</Package>




To get the pagelayout name:

Cheers!!!

Leave a Reply