A batch bob requires multiple classes, a query and a menu item to work together in conjunction that together make up the batch job. The minimum objects required to create a batch job is :
- SysOperationServiceController class
- DataContract class
- A menu item pointing to the controller class.
- An AOT query
We will try to create a batch job that loops for all "SalesTable" to change value in a new field "DEMOValue".
Step 1 : Create an AOT query named DEMOSalesTable with SalesTable as its datasource.
Step 4 : Create an action menu item named DEMOSalesTable with the Object as DEMOSalesTableController.
Step 5 : Place the menu item on the menu's and click it to open and run the batch job.
That's all required steps to create a simple batch job.
For more complex scenario, please find below links that can be used in addition to this article to create a more complex batch job.
Step 5 : Place the menu item on the menu's and click it to open and run the batch job.
That's all required steps to create a simple batch job.
For more complex scenario, please find below links that can be used in addition to this article to create a more complex batch job.
Comments
Post a Comment