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 ?

  • Kirandeep

    Member
    February 11, 2020 at 2:44 pm

    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😉
    Please follow below channel for more salesforce facts : https://www.instagram.com/salesforce_hacks/

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos