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
SubbuDSubbuD 

How to invoke a batch class through visualforce page

I have a requirement which involves invoking a batch class through a custom button/ visualforce page.

Dev@Force.ax647Dev@Force.ax647
//run this code on button click
BatchClass bc = new BatchClass(); Database.executeBatch(bc,50);