Created
March 4, 2014 23:25
-
-
Save emoran/9357913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class CL_BATCH_update_Purchases implements Database.Batchable<sObject> { | |
public CL_BATCH_update_Purchases(){} | |
global Database.QueryLocator start(Database.BatchableContext BC){ | |
String query='Select Id from SFDC_Purchase_Order__c'; | |
return Database.getQueryLocator(query); | |
} | |
global void execute(Database.BatchableContext BC,List<SFDC_Purchase_Order__c> scope){ | |
List<SFDC_Purchase_Order__c> listOrden=new List<SFDC_Purchase_Order__c>(); | |
for(SFDC_Purchase_Order__c orden : scope){ | |
listOrden.add(orden); | |
} | |
update listOrden; | |
} | |
global void finish(Database.BatchableContext BC){} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment