You need to sign in to do that
Don't have an account?
Ahmad Helal
Using OR Logic in SOQL
I have an object I need to query that has a reltionship to the opportunity object.
I need to find records that are related to a specfic set of opportunties (15 different opportunties)
Do I have to type out
WHERE Opportunity__c = '006XXXXXXXX' OR Opportunity__c = '006XXXXXXXX' OR WHERE Opportunity__c = '006XXXXXXX' 15 times?
Is it possible to do something similar to fomrulas where you can do Opportunity__c = OR (Value1, Value1, Value3, etc)
I need to find records that are related to a specfic set of opportunties (15 different opportunties)
Do I have to type out
WHERE Opportunity__c = '006XXXXXXXX' OR Opportunity__c = '006XXXXXXXX' OR WHERE Opportunity__c = '006XXXXXXX' 15 times?
Is it possible to do something similar to fomrulas where you can do Opportunity__c = OR (Value1, Value1, Value3, etc)
All Answers