Mass Delete List View Button in Lightning!

      2 Comments on Mass Delete List View Button in Lightning!

Remember how I said I’d find a way to Mass Delete error records in lightning? Well here it is! (And shown in Lightning as well, you only need to use this for Lightning as you could use the JS Button for Classic)

Step 1 – Download this from Salesforce Labs (https://appexchange.salesforce.com/listingDetail?listingId=a0N300000016YuDEAU)

Step 2 – Clone one of the VF Pages

Step 3 – Replace this in the cloned page with the custom object you want the button to live on

Step 4 – Make new button

Step 5 – Add it to the search results

Step 6 – Mass Delete!

Side note after writing this up I see in 2.9 someone added a VF page button that does the same thing.  WELL THE GOOD NEWS IS THIS WORKS WITH ANY OBJECT IF YOU HAVE ANY OTHER OBJECTS YOU WANNA ADD A MASS DELETE BUTTON TO 😉  The only difference is in editing the VF page you’d put the object API name where we put the DLRS object name and you’d most likely want to name the page something different.

2 thoughts on “Mass Delete List View Button in Lightning!

  1. Sachin

    Hello Dan,

    Hope you are doing well.
    This mass delete in lightning is great. But how to implement this for OpportunityLineItem?

    Thanks,
    Sachin

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.