Activity Forums Salesforce® Discussions How to get Current Record ID in Lightning Component's Apex Controller ?

  • How to get Current Record ID in Lightning Component's Apex Controller ?

    Posted by Kirandeep on February 11, 2020 at 2:44 PM

    How to get Current Record ID in Lightning Component's Apex Controller ?

    Programming replied 5 years ago 2 Members · 1 Reply
  • 1 Reply
  • Programming

    Member
    March 5, 2021 at 5:27 PM

    By JavaScript you can get recordID in this way : component.get("v.recordId");

    and then simply send the value to your apex class by following these steps :

    action.setParams({

    parentId: component.get("v.recordId"),

    });

    Hope this help you?

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos