Play Games

Search This Blog

Tuesday, February 2, 2021

How to retrieve compact layout using package.xml in vs code salesforce

 How to retrieve compact layout using package.xml in vs code salesforce

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

Solution: Use name as CompactLayout and member as 'ObjectName.compactlayoutname' 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_Compact_Layout</members>

        <name>CompactLayout</name>

    </types>

    <version>48.0</version>

</Package>

Output:



No comments:

Post a Comment