Activity › Forums › Salesforce® Discussions › How to get record Id from Lightning record edit form on record insert? Tagged: Components, Console Log, Edit Record, Events, Insert, JSON, JSON Stringify, onSuccess, Record ID, Salesforce Lightning Salesforce® Discussions How to get record Id from Lightning record edit form on record insert? Posted by Prachi on August 20, 2018 at 1:28 PM How to get record Id from Lightning record edit form on record insert? Avnish Yadav replied 7 years, 8 months ago 2 Members · 1 Reply ComponentsConsole LogEdit RecordEventsInsertJSONJSON StringifyonSuccessRecord IDSalesforce Lightning 1 Reply Avnish Yadav 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. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me