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:


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)?

  • Did you see the documentation flexiPageRegions? – Raul Jan 11 '18 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 :) – Brian Mansfield Jan 11 '18 at 17:42

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.

| improve this answer | |
  • 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 – Brian Mansfield Apr 26 '18 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 '18 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 '19 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.