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
sfdeveloper9sfdeveloper9 

Data in ActivityHistory

I am inserting a million records in task object with status field set to 'Done' thru an external load, after the load I see only around 400k recs in task when I query, but I see the missing records in Salesforce UI which don't come up when I query in apex explorer. these missing records are going to ActivityHistory object which is not queryable. can somebody tell me why these records are going to ActivityHistory object and is there way to query ActivityHistory.
WmWm
Tasks with the status as 'Completed' will automatically move to Activity History. I assume you would have already checked this out but just a thought!
sfdeveloper9sfdeveloper9
Wm, I thought that was the case but I still see some records in Task object with status 'Completed'.