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
mahalakshmi kothurimahalakshmi kothuri 

Need help to create Case from Schedule Task when due comes

Is there any way to create a case form Task where the tasks are scheduled ones . Case need to be created when Task comes to due.


You may have to use scheduled APEX to achieve this. Since the event of a task reaching a due date is not a DML event, we cannot use a trigger for this. We can write a scheduled apex job to run everyday and create cases for tasks whose due date is that particular day on which the scheduled apex job runs.

More info on scheduled apex:

If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.