Skip to main content
Hello,

we have one problem with Flexipages. When we create a Flexipage and assign Profiles to to we can retrieve it with force:sourcepull. If we add Profiles later on and try to retrieve it again, then a message shows up saying there were no changes.

How can we retrieve the changes?

regards

Peter
답변 1개
  1. 2019년 8월 19일 오전 6:09
    Hi Peter,

    Flexipage Assignments are called ProfileOverride. It is documented here https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_profileactionoverride.htm

    The metadata looks like the one below, it is a part of a custom app:

     

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

    <profileActionOverrides>

        <actionName>View</actionName>

        <content>CustomObjectFlexiPage</content>

        <formFactor>Large</formFactor>

        <pageOrSobjectType>TestObj__c</pageOrSobjectType>

        <type>Flexipage</type>

        <profile>standard</profile>

        <recordType>TestObj__c.TestRecordType</recordType>

    </profileActionOverrides>

    <defaultLandingTab>standard-home</defaultLandingTab>

    <formFactors>Large</formFactors>

    <label>My Custom App</label>

    <tab>standard-Account</tab>

    <tab>standard-Opportunity</tab>

    <uiType>Lightning</uiType>

    <navType>Standard</navType>

    And the package.xml would look like the one below:

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

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

     <types>

        <members>MyCustomApp</members>

        <name>CustomApplication</name>

      </types>

     <version>39.0</version>

     </Package>

    I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

    Thanks,

    Ajay Dubedi
0/9000