You need to sign in to do that
Don't have an account?
Neha@Sfdc
unexpected token select
hi
List<Contract__c> c=[selectunexpected token: 'select' Product__c from Contract_Line_Item__c where Contract__c IN:
(select Id from Contract__c where Customer__c IN:custIds)];
I get an error for the above line as unexpected token
Any help would be appreciated
Thanks,
Neha
- This is my query which retrievevs those products which are ordered by more than one customer
List<Contract__c> c=[selectunexpected token: 'select' Product__c from Contract_Line_Item__c where Contract__c IN:
(select Id from Contract__c where Customer__c IN:custIds)];
I get an error for the above line as unexpected token
Any help would be appreciated
Thanks,
Neha
Try Like This:
List<Contract__c> c=[select Product__c from Contract_Line_Item__c where Contract__c IN:
([select Id from Contract__c where Customer__c IN:custIds])];
All Answers
Try Like This:
List<Contract__c> c=[select Product__c from Contract_Line_Item__c where Contract__c IN:
([select Id from Contract__c where Customer__c IN:custIds])];
SELECT Name FROM Account;
But getting following error message from developer console query editor
Unknown error parsing query