Activity Forums Salesforce® Discussions How is Lightning aware of what record you are on if you embed it in Salesforce1?

  • Piyush

    Member
    April 30, 2016 at 3:20 pm
  • Ajay Prakash

    Member
    April 30, 2016 at 3:23 pm

    Hey Himanshu

    Your component needs to implement the force:recordTab interface and the record and recordId will be automatically injected when your component is wired into record home.

     

    Thanks

  • PRANAV

    Member
    January 31, 2018 at 8:53 am

    Hi,

    Ok, I found it after doing some serious reading of the Winter '16 release.

    You need to implement the interface:

    force:hasRecordId

    in your component and then you can access the record id via the following expression

    {!v.recordId}

    Hope this helps you.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos