- Select Id, Name From Object where Custom_Formula_Field__c = 'Any'
- Select Id, Name From Object where Custom Related_Object__r.Custom_Field__c = 'Any'
Many thanks!
1 risposta
Never use fomual field in SOQL in where as per salesforce best pratice. https://developer.salesforce.com/blogs/engineering/2013/02/force-com-soql-best-practices-nulls-and-formula-fields.html2nd option is good one.Please let us know if this will help you.ThanksAmit Chaudhary