• Rajashekar Shetipally
  • NEWBIE
  • 0 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi,

Looking from some guidance on how to pre-populate account id on a custom aura component to create contacts. 

I would like to pre-populate account id on the component, when a user clicks on "New Contact", on Account's related contact list. I have declared "force:hasRecordId on the component. but nothing is returned for recordId:
 
<aura:component implements="force:lightningQuickAction,force:hasRecordId">  
     <lightning:input value={!v.recordId}
</aura:component>
However, this does work when i add new contact button to Account's record detail page. 

Any idea why this would not work from related page?

Thanks,
Navin