Play Games

Search This Blog

Showing posts with label How to retrieve pageLayout using package.xml in vs code salesforce. Show all posts
Showing posts with label How to retrieve pageLayout using package.xml in vs code salesforce. Show all posts

Tuesday, February 2, 2021

How to retrieve pageLayout using package.xml in vs code salesforce

Problem: Assume 'Custom Lead Page Layout' is created on Lead object as shown in the image below.Now we need to retrieve that pagelayout in vs code tool using package.xml

Solution: Use name as Layout and member as 'ObjectName-pagelayoutname' as shown below.

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

<Package xmlns="http://soap.sforce.com/2006/04/metadata">

    <types>

        <members>Lead-Custom Lead Page Layout</members>

        <name>Layout</name>

    </types>

    <version>48.0</version>

</Package>

Output: