Loading

The LastActivityDate field does not update for all contacts in shared activities.

Fecha de publicación: Apr 23, 2025
Descripción

 

The Salesforce community knows that the LastActivityDate field does not update for all contacts in shared activities. This is a known limitation.

 

 

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 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

 

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

 

  • 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.

 

Número del artículo de conocimiento

004637111

 
Cargando
Salesforce Help | Article