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
JR NonprofitJR Nonprofit 

Inserting rows in activities

Is there a way to insert rows into the activity history?  When I try to do so within my Apex code I get an error message: DML not allows on Activity History.
 
Thanks for your help.
SuperfellSuperfell
ActivityHistory is a view entity, you should create a complete task or event to get it into the activityHistory view.