Activity › Forums › Salesforce® Discussions › How to get current record id in lightning component?

  • Anjali

    Member
    July 31, 2020 at 10:54 AM

    Use 'force:hasRecordId' interface in your lightning component and set the params-
    action.setParams({
    "accountId": component.get("v.recordId")
    });

  • [adinserter block='9']
  • Sumit kumar

    Member
    August 3, 2020 at 5:08 AM

    Use 'force:hasRecordId' interface in your lightning component and set the params-action.setParams({"accountId": component.get("v.recordId")});

Log In to reply.

Popular Salesforce Blogs

Unlocking Success with Salesforce Sales Cloud: Implementation, Services, Features, and Support

Blog in

Salesforce Sales Cloud is a robust and comprehensive CRM solution designed to assist companies in managing their sales processes more efficiently. It offers a suite…

Popular Salesforce Videos