Loading

The LastActivityDate Field Does Not Update for All Contacts in Salesforce Shared Activities

Fecha de publicación: Oct 30, 2026
Descripción

In Salesforce, Shared Activities let you associate multiple contacts with a single task or event. However, only the primary contact, listed in the WhoId field, has their LastActivityDate updated. Secondary contacts don't have their LastActivityDate field updated even though they are associated with the activity and it appears in their activity timeline.

Salesforce's data model handles activity relationships in a specific way, which causes this limitation. The WhoId field (the field that stores the primary Contact or Lead on a Task or Event) links to a single contact or lead. Additional contacts can be associated through the ActivityRelation object. However, the LastActivityDate field does not consider these secondary associations.

Solución

This article explains how to work around the fact that Salesforce doesn't natively update LastActivityDate for secondary contacts on shared activities.

Why There's No Out-of-the-Box Fix

There is no out-of-the-box solution for this limitation. However, customers can use these workarounds.

Workaround: Track Activity Dates with a Custom Field

  • Create a custom field, such as MostRecentActivityDate__c.
  • Use a Flow, Scheduled Job, or Apex Trigger to read from the ActivityRelation object.

Update that custom field with the latest ActivityDate of related activities, regardless of WhoId.

Recursos adicionales

Manage Activities 

 

Número del artículo de conocimiento

004637111

 
Cargando
Salesforce Help | Article