function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lily BluntLily Blunt 

Component inside FlexiPage. But where in metadata?

Hello. So I am aware you can add a VF component onto the flexipage layout using the Lightning App builder. However, if I extract the FlexiPage meta data using ANT migration tool, there is no trace of that component I added.    The component metadata itself is available separately, as <name>AuraDefinitionBundle</name>. But that's the component definition.

Am wondering how Salesforce keeps the information that X component is a part of Y flexi-page.   Can't see this anywhere.   Has to stored somewhere right?
Kavitha mKavitha m
Hi, If you add component  ( lightning component that you created or standard VF component ) to flexipage, in metadata retrieve you will be seeing that component and its properties in <componentInstances> under componentName, componentInstanceProperties ,sample shown below.  Your package.xml can just have flexipage name , sample shown below. Hope it helps!
            <componentInstanceProperties>
                <name>designAttr1</name>
                <value>true</value>
            </componentInstanceProperties>
            <componentInstanceProperties>
                <name>designAttr2</name>
                <value>100</value>
            </componentInstanceProperties>
            <componentName>componentSample</componentName>
        </componentInstances>

Sample package.xml:
<types>
        <members>MyPage1</members>
        <name>FlexiPage</name>
    </types>