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

  • 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