You need to sign in to do that
Don't have an account?
Austin Gutz
CPU time limit - Help
I found a very basic Apex class to update a custom object and have it scheduled to run nightly. It was working just fine for a few days but now I'm getting a CPU time limit error.
Would it help to only list the records that need updating? If yes, what do I need to modify in the class to do so?
I'd like to only update records were Field1__c != Field__c2
Would it help to only list the records that need updating? If yes, what do I need to modify in the class to do so?
I'd like to only update records were Field1__c != Field__c2
global class DailyOpenInvoiceUpdate implements Schedulable { global void execute(SchedulableContext ctx) { List<Open_Invoices__c> lList = [Select Id, Name from Open_Invoices__c]; update lList; } }
My question is how to do that? Is it as simple as adding: