+ Start a Discussion

Creating a Batch Apex


I have to develop a new functionality that creates a new task for every Contact that hasn't been contact in a while.

So, I've been investigating differents possibilities on how to proced and I found "Batch Apex".

I know I have to create a class that has 3 methods: start, execute and finish. After that I have to create an instance of that class and execute it. But I don't understan where and how I can make the process to run automatically in a period of time.

Could someone help me? Or add a link with a simple example? 

Thanks very much!

Majo :smileyvery-happy: