Tuesday, December 6, 2011

Use of Batch / Schedule Apex in SalesForce

Topic In Detail: When you want to schedule some apex code at some particular time within a period of time not on some event occurance.
Batch apex is like schedule apex, if you want to run a specific code to achieve some task related to maintenance of your Organization data for some specific purpose so, you can schedule that code to run on weekly or monthly basis, you can choose the days on which you want to schedule you apex code. you can specify the period of time Start-End Date and the time too. To schedule the apex, we have the option in Setup -> Apex Classes -> Schedule Apex




Clicking on this button will redirect to you on a screen




You have to enter your job name then select the apex code you want to schedule and the time event on which you want to schedule this code. The code is scheduled.

So this way, you can schedule any apex code in your organization for your application.

For more guidance, reach me at:
http://www.amitgoyal09.blogspot.com
http://www.salesoncloud.blogspot.com
nicsplacement@gmail.com
linkedIn, Twitter, IM by name amitgoyal09

Thanks,
Amit Goyal
Online Trainer and SalesForce Developer
(SalesForce, MCA, BCA,RHCE)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.