I am trying to run this query in Query Editor but got
"Unknown error parsing query"
Is there any workaround for this?
Select Customer_Name__c From SAP_Customer_Master__c where Customer_Name__c like ('trimax%','thomas%')
I am trying to run this query in Query Editor but got
"Unknown error parsing query"
Is there any workaround for this?
Select Customer_Name__c From SAP_Customer_Master__c where Customer_Name__c like ('trimax%','thomas%')
Best Answer
You can't do that with a like, you'd need to use OR instead:
EDIT
Something that I didn't know, that I've only just found out from trying it, is that you can use LIKE with bind variables. So, whereas the SOQL in the OP wouldn't work due to a compilation error, this would: