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

apex class to excute calculate button daily for dlr record

i need to write apex class to exceute calculate button on daily basis . can someone help with the apex code ,i am new in batch scheduling, i need to click on calculate button on daily basis
User-added image
Manoj DegaManoj Dega
Hi Divya,

Can you let me know what functionality that button does?
Hi manoj,

after clicking on this button it is giving the calculating the task on lead object 
Manoj DegaManoj Dega
You have to handle that button logic in Database.execute method in Batch class.