Need a way to put this class on hold
Apex Class = BatchOwnerChangeOnPercentFunded
String query='select id,funded_date__c,percent_funded__c,ownerid,accountid from opportunity where percent_funded__c>0 and percent_funded__c<100 '+
' and stageName=\'funded\' and funded_date__c!=null and opportunity_type__c in (\'New Loan\',\'Concurrent\',\'Tier Up\',\'Renewal\') '+
' and recently_funded__c=true order by funded_date__c desc';
[login to view URL](query);
return [login to view URL](query);
Can we add and Checkbox and include it in the string, string include Checkbox is false.
and to put on hold we would check the box where checkbox = true and remove from hold we just remove the check from the checkbox.
Hello,
If I understood it correctly, you want a way in the batch class so that with single click you can prevent the batch class from processing the records. And whenever you want, you can enable it so that it can start processing records.
I can do this in an hour from the time the project is started.
If you want a way to exclude few records by introducing checkbox on the records, that too can be done.
Please ping me to get this delivered in a short while from now.
I am certified Salesforce professional and have all 5-star ratings, so you can rely on my words.
Regards,
Mohammed