Activity Forums Salesforce® Discussions How can I delete a row in salesforce lightning component?

  • Piyush

    Member
    October 4, 2019 at 2:49 am

    Hi Laveena,

    To perform the delete operation, call deleteRecord on the force:recordData component from the appropriate controller action handler. deleteRecord takes one argument, a callback function to be invoked when the operation completes. This callback function receives a SaveRecordResult as its only parameter. SaveRecordResult includes a state attribute that indicates success or error and other details you can use to handle the result of the operation.

    You can check the following link: https://www.biswajeetsamal.com/blog/dynamic-add-delete-row-in-lightning-component/

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos