Skip to main content
Hello All,

How can I retrieve the lookup field that is on the parent record in an aura componet.

implements="flexipage:availableForAllPageTypes,force:hasRecordId,force:hasSObjectName,lightning:actionOverride,force:lightningQuickAction,lightning:isUrlAddressable,lightning:hasPageReference"

So here I can get the recordId by:

recordId="{!v.recordId}"

But I need the look up field on the recordId.

Thank you,

P

 
답변 1개
  1. 2022년 11월 16일 오전 2:56
    Hi Phuc,

    You cannot get directly the lookup like we get the recordid. You need to get the recordid and then pass that record id to apex controller and then query it in apex controller and again pass it to the aura.

    Let me know if you face any issues.

    If this solution helps, Please mark it as best answer.

    Thanks,
0/9000