Is it possible to have other activities mark a Lead as read? We have a use case where some of our users would like to mark Leads as read when they have been included in an Extended Mail Merge.

Example: Twenty new Leads come in and are responded to via Extended Mail Merge. Instead of having to click-through to each Lead they should now be marked as read.

I know that we can do this via the Data Loader so I'm hoping there might be a way to do this with triggers or in mass on a Visualforce page.

  • Is mass editing using enhanced lists with standard list views an option ? You could also do a mass effect JavaScript button using the Ajax toolkit to action items selected in a list view. Oct 22, 2012 at 19:04
  • This is not editable via enhanced lists.
    – Mike Chale
    Oct 22, 2012 at 19:07
  • If the email is logged against each as a Task, then perhaps a TaskAfter trigger? Oct 22, 2012 at 19:16
  • It shows up in the Activity History with Task checked, so I guess that's possible?
    – Mike Chale
    Oct 22, 2012 at 19:18
  • Might be worth investigating. Although if SteveMo reckons it ain't possible it prolly ain't :) success.salesforce.com/questionDetail?qId=a1X30000000drAWEAY Oct 22, 2012 at 19:21

2 Answers 2


Just tried a Mass effect button added to the List view, and it seems to be able to update the field on the lead, returns a successful result. Create a List Button, with on click JS behaviour, paste in the JS below and add it to the Lead List View Search Layout. (You can also set IsUnreadByOwner to true, to mark them unread, seemingly. Managed to query via Workbench to verify.)

var records = {!GETRECORDIDS($ObjectType.Lead)}; 
var updateRecords = []; 

if (records[0] == null) { 
    alert("Please select at least one record to update."); 
} else { //otherwise, there was a record selection
    for (var a=0; a<records.length; a++) { //for all records
        var update_Lead = new sforce.SObject("Lead");
        update_Lead.Id = records[a];
        update_Lead.IsUnreadByOwner = "false"; 
    result = sforce.connection.update(updateRecords); 
       alert('Result is ' + result);

  • Thanks! I like the simplicity that having a dedicated button for this could bring. One question: do the updates have to happen individually or can they be done in bulk?
    – Mike Chale
    Oct 24, 2012 at 0:27
  • Thanks. The updates are happening in bulk when a list of leads is passed through via the update Api call on the last line. Oct 24, 2012 at 0:34
  • I'll have to try this out this week.
    – Mike Chale
    Oct 24, 2012 at 2:25

It turns out that a free 3rd party app from the App Exchange for handling mass edits and updates provides this functionality.


As requested, the app is Mass Update and Mass Edit by Salesforce Labs.

  • 1
    Interesting. Could you provide a link or the name of the app? Oct 22, 2012 at 20:30
  • Answer updated to provide name and link of the app.
    – Mike Chale
    Oct 23, 2012 at 2:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .