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")
    });

  • Sumit

    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

Popular Salesforce Videos