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
Akshay Mourya 6Akshay Mourya 6 

Case Activity History

Hi All,

I want to insert Case Activity History againt a case.
Can you please let me know which table or rest API i can use to inset Activity History against a case.

Thanks
SwethaSwetha (Salesforce Developers) 
HI Akshay,
As mentioned in the documentation- https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_activityhistory.htm ActivityHistory is a read-only object - it shows closed tasks and events that are in the past. The purpose is to track the changes made to the case object. Salesforce restricts any edit or inserts to ActivityHistory as it defies the purpose. 

So there is no way to insert into the caseActivityHistory

If this information helps, please mark the answer as best.Thank you