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
ManidManid 

How to assign a task ? and how to complete the task using Apex code?

using triggers
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Manid,

May I suggest you please refer the below link for reference on Creating Tasks from Apex. hope it will be helpful.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar
ManidManid
Rahul Kumar thanks for respond. I want to know what are fields available in the Task object