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
Nicholas PaceNicholas Pace 

Anonymous Execute Button

Currently I open develop window and go to debug and open execute anonymous window and I enter 

"Id batchJobId = Database.executeBatch(new BatchClass_Retrieve_Inventory_BL(), 1);"

I would like to create a button for this so I can let other people run it as well or schedule it to run once or twice per day. 

Any help would be greatly appreciated. 
Pascal Le ClechPascal Le Clech
Just do it !
VF page + button + @RemoteAction method in controller
or
Lighning component + button + @AuraEnabled method in controller
 
Nicholas PaceNicholas Pace
I'll try to look up doing it with a VF Page. Thanks for your help.