Becci No Comments

Salesforce – Delete Records in Mass

There are times when you may need to delete records in mass.  Maybe an import was done or a mass update and you want to remove any records created.  This is also helpful during migrations.

The record types you can mass-delete include cases, solutions, accounts, contacts, leads, products, and activities.

Here are some ways that mass delete is handy.

  • You’ve identified multiple reports that are no longer used and you want to unclutter the list of reports on the Reports tab.
  • You imported your leads incorrectly and you want to start over.
  • You want to clean up web-generated leads that were created incorrectly or delete accounts and contacts with which you no longer do business.

To Mass Delete Records:

Make sure you have a backup of your data or do a quick export before performing the mass delete.

Run a SOQL query in Developer Console or a Report to view the records you will be deleting and get a record count.

  1. From Setup, enter Mass Delete Records in the Quick Find box, and then select Mass Delete Records.

  1. Click on the link for the type of record to delete. For this example we will use Activities.
  2. In Step 3 of the Mass Delete screen, add the criteria for the records to remove. For example:  Activities created today, Accounts in Texas, Open cases older than 2 years.  The below image shows we are deleting activities that were created by ‘bgear’ AND created Today AND is a Task.

  1. To find records that match the filter, click the Search The result list will display at the bottom of the page.
  2. Review the items to be sure you recognize them and that the filter is correct. If there are more than 250 records, you will be alerted that there are more records in the results.
  3. Check the box next to the items you want to delete. To select all currently displayed items, check the box in the Column Header.
  4. To permanently delete records, select Permanently delete the selected records.


  1. Click the Delete button. If you did not select Permanently delete the selected records, deleted items are moved to the Recycle Bin.
  2. If you have deleted all of the records in the list, it will be blank. If you have more records to delete, repeat steps 7 – 10 until all records are removed.




Becci No Comments

Salesforce: Flow and Process Error Emails

Error emails are sent to the user (admin) that last modified the process or flow.  Sometimes, you may want another user or consultant to know when an issue occurs.  We can now add users and external email addresses to Flow Exceptions emails.  **Keep in mind that these users and email addresses also receive Apex exception emails. Read more

Becci No Comments

Salesforce: Setting Default Values in Salesforce Picklists

Picklists are great for keeping data consistent.  By allowing only specific values; reports and processes run smoothly.  You can be even more consistent by setting a default value that will prepopulate the field on the screen.  For example; if all orders are placed with a Stage of “Draft”, the Stage field can be set to populate when creating new Orders. Read more

Corey Babka No Comments – Close Salesforce Lightning Activities with a Click of the Mouse

A quick and easy way to complete activities individually or in mass can be created by adding the Closed checkbox field to the Open Activities related list.  The checklist will display on each activity in the list.  When you check the box, the activity will automatically be marked as closed.  The activity will then move into the Activity History related list.  You can check one or more activities at a time. Read more

Corey Babka No Comments – Monitor Emails Sent from Salesforce

The Email Log files are a great way to monitor messages sent from Salesforce and when testing new templates.    The log file will include the status of the email as well as date,  UserID, recipient, and sender.

The file can retrieve up to the last 30 days of activity and will be available within 30 minutes of requesting it.  It is delivered via email in .csv format and can span multiple files if there are large amounts of messages sent. Read more