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
Hari N 20Hari N 20 

Batch Apex to Create a task in Open Activity

Hi All,
I have one custom object. When ever I insert record on that custom object, I want to create a task in open activities of account object.
I want to write batch apex for this.
How can I achieve this?
Please share syntax for the same if you have.

Thanks in Advance

Dinesh PDinesh P
Use workflow to create task. Entry criteria should be "only create". Workflow action whould be task creation.