You need to sign in to do that
Don't have an account?
HelloSan
i need to pass a query to fetch the records in batch class where program picklist field on account object is equals to say X,Y,Z
the qurey is as similar as
eg : global database.querylocator start(Database.BatchableContext BC){
query = 'select id,Program__c from Account where program__c';
eg : global database.querylocator start(Database.BatchableContext BC){
query = 'select id,Program__c from Account where program__c';
or something more complex like
NOTE: This code has not been tested and may contain typographical or logical errors
NOTE: When adding code please use the "Add a code sample" button (icon <>) to increase readability and make it easier to reference.