0

making use of lightning:recordEditForm to create a new record. I am using standard save functionality. After successful save of record I need to make use of the record Id.

   onSuccess: function(cmp,event) {
     var responseJSON = event.getParams();
     var recordId= responseJSON.id; 
    console.log('helooooo'+recordId);

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

record id is coming undefined.

  • 3
    Can you also show the code of the component and define which method (onSuccess/handleSuccess) you are using as the handler to provide a better view for others. – Avi Rai Feb 4 at 7:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.