You need to sign in to do that
Don't have an account?
Phuc 2
Aura component retrieve lookup field id
Hello All,
How can I retrieve the lookup field that is on the parent record in an aura componet.
So here I can get the recordId by:
Thank you,
P
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
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,