Activity Forums Salesforce® Discussions How to get record Id from Lightning record edit form on record insert?

  • Avnish

    Member
    August 21, 2018 at 6:04 am

    Hello Prachi,

    Using the onsuccess event, you have access to the response object which contains, amongst other things, the id of the record that was recently created:

    ({
    handleSuccess : function(component, event, helper) {
    var payload = event.getParams().response;
    console.log(JSON.stringify(payload));
    }
    })

    For information:- Read here

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Salesforce Admin Certification 2020 Questions Explained with References - Part II

Video in

How to prepare and pass Salesforce Admin Certification with Practice Exam Questions 2020 practice questions and answers for the Salesforce Administration Salesforce Certified Admin Exam Questions Salesforce Administrator Certification Exam…