how can we do batch apex updating lookupfieldprogram is exeuted but requir ment is not metdo this for meglobal class batchapexforlookup implements database.Batchable<sobject> { list<custmer__c> c; global void batchapexforlookup(){ c=new list<custmer__c>(); } global database.Querylocator start(database.batchablecontext bc){ return database.getQueryLocator('select area__c,digit__c,newcustmer__r.Name from application__c'); } global void execute(database.batchablecontext bc,list<application__c> app){ for(application__c a:app){ a.newcustmer__c='2015-0037'; } update app; } global void finish(database.BatchableContext bc){ }}