+ 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: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

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