+ Start a Discussion
Pasan   EeriyagamaPasan Eeriyagama 

How to embed RecordDetail lightning component into our own custom component?

I'm trying to get below lightning component into a own custom component.

User-added image

Seems not exposed to embed, just tried below and no luck.
<c:recordDetail recordId="{!v.contactId}"/>

No COMPONENT named markup://c:recordDetail found :

Any help on achieving this, so that it will show up default layout set up for the profile of current user.
Jefferson FernandezJefferson Fernandez
Hi Pasan,
Could you paste the code of both of your components to better view what's happening?
Pasan   EeriyagamaPasan Eeriyagama
@Jefferson This component I'm trying to use is simply what is available in Lightning designer. But it seems unfortunately it's not exposed for developers to use yet. This idea (https://success.salesforce.com/ideaView?id=0873A000000Tr96QAC)could help though.
brahmaji tammanabrahmaji tammana
I don't think you can add the standard components to our own custom components. But you can achieve it throught our component markups.
<force:recordView recordId="a02D0000006V8Ov"/>
Add this markup to your component and you will see readonly view of the record.