SalesforceLabs / EnhancedLightningGrid

Component that allows you to sort and filter data within the Lightning Experience. Use as a replacement for a Related List, or create a new grid that shows results from a custom query.
BSD 3-Clause "New" or "Revised" License
136 stars 97 forks source link

Error opening record from grid containing multiple record types #49

Open ndemers-wk opened 3 years ago

ndemers-wk commented 3 years ago

We have a custom object with multiple record types. In the list grid list view, all the different records of different record types are successfully listed. The Edit action and the Create actions work fine. But, when we click on a record in the list to open the record for view, we get this error: INVALID_TYPE: sObject type 'RecordType' is not supported in describeCompactLayouts

We do not see this error on our grids that display lists of just a single record type.

Anyone have any thoughts? You folks on here have helped me in the past - thank you! Nancy

ndemers-wk commented 3 years ago

NEVERMIND.... I just figured out that you need to include the Name field of the record in the list in order to click on the record. We had another field that was not the Name, but rather a clickable reference to another record.