1

I have a Lightning Record page that has a section with a case page layout. When I retrieve the metadata for the Flexipage, the markup for the section with the page layout looks like this:

<flexiPageRegions>
    <componentInstances>
       <componentName>force:detailPanel</componentName>
    </componentInstances>
    <name>main</name>
    <type>Region</type>
</flexiPageRegions>

Where is the layout used in this section defined? I did a find across files for the layout name and can't find anything that looks promising. Does it perhaps inherit from an org setting somewhere - does setting the layout used have to be a manual step (this is a valid answer, but looking for confirmation)?

2
  • Did you see the documentation flexiPageRegions?
    – Raul
    Jan 11, 2018 at 17:39
  • @RahulSharma I have - it appears there's not a field defined on that to specify the specific layout. I would be happy to be wrong :) Jan 11, 2018 at 17:42

2 Answers 2

0

The force:detailPanel component is showing the layout as defined by the page layout. See Page Layouts (help) and Layout (Metadata API).

Also when you select the component in Lightning App Builder the right hand side section has more info and links to the specific page layouts used.

3
  • I don't see how this answers the question - in the OP, the force:detailPage shows no such definition. I'd love to accept an answer here, but please elaborate Apr 26, 2018 at 17:47
  • Yes, there is no property or anything you configure on force:detailPage to map this. It is all internal to force:detailPage. What layout it shows is determined by the page layout assignment, which you can read more how to configure here help.salesforce.com/…
    – Kristian
    Apr 27, 2018 at 19:46
  • Does the force:detailPanel work for Custom Objects? It gives error when I use a custom Object say- <force:detailPanel aura:id="myCustomObject" entityApiName='MyCustomObject__c' /> but works fine with <force:detailPanel aura:id="case" entityApiName='Case' />. Error I get is - You don't have access to this record. Ask your administrator for help or to request access
    – Ishank
    Sep 18, 2019 at 11:09
2

I stumbled upon it looking for something else but it seems it has not been answered yet.

The page layout assignments per profile and record type are defined in the profile. If you using MDAPI/SFDX to retrieve the profile, keep in mind only the assignments related to the layouts and record types that are retrieved together with the profile will be retrieved, so you need to be careful with how you manage and deploy profile data between the orgs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .