You need to sign in to do that
Don't have an account?
AKM123
Error MessageSystem.QueryException: unexpected token: '('
Please could someone help me
Error MessageSystem.QueryException: unexpected token: '('
Stack TraceClass.batchAccountUpdate.start: line 4, column 1
I get this error message when I am trying to run the test class for this batch
Error MessageSystem.QueryException: unexpected token: '('
Stack TraceClass.batchAccountUpdate.start: line 4, column 1
I get this error message when I am trying to run the test class for this batch
global class batchAccountUpdate implements Database.Batchable<sObject> { global Database.QueryLocator start(Database.BatchableContext BC) { String query = 'SELECT id, Name FROM Opportunity WHERE Createddate =:system.today() AND Status <> \'closed\' AND Has_IBM_Product__c = False AND Id IN : (SELECT OpportunityId FROM OpportunityLineItem WHERE pricebookentry.product2.family =\'XYZ\') limit 10'; return Database.getQueryLocator(query); } global void execute(Database.BatchableContext BC, List<Opportunity> scope) { for(Opportunity Opp : scope) { Opp.Has_ABC_Product__c = True; } update scope; } global void finish(Database.BatchableContext BC) { } }
Let us know if this will help you
All Answers
Let us know if this will help you