function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Andreea TAndreea T 

How to update Contact object when there is no linked Activity History to the Contact after 24 hours of created date

Hi there
In the Contact object we are having one checkbox Activity_history_missing__c field so this we want to make it true when there is no linked Activity History to the Contact after 24 hours of the Contact Created date.
How can I achieve this?
Can you please send me sample trigger on Activities so I can update the Contact.
Thanks
 
PriyaPriya (Salesforce Developers) 
Hey Andrea,

You can develop a batch class and schedule it for everyday. And use map to store the contact ID.

Hope this suggestion helps.

Thanks!