Loading

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

Veröffentlichungsdatum: Apr 23, 2025
Beschreibung

 

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.

 

Lösung

 

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.

 

Nummer des Knowledge-Artikels

004637111

 
Laden
Salesforce Help | Article