I have a requirement where i have written a Query to fetch the records from the Server. I want to modify it as per the business requirement not to include the certain records, Please help me out for this .
{` testobj = [
SELECT Id, Cust__c, C_R_Role__c, Rest_Flag__c, FTest__c, Web__c, Type__C
FROM testObj__c
WHERE Customer__c = :cReocrdId
WITH SECURITY_ENFORCED
ORDER BY Rest_Flag__c ASC NULLS LAST
];`}
i want Type__c in Which there are two record ABC__c and DEF__c should not be included in the above query can anyone help me out with the above requirement.
Thanks
!=
andnot in
in SOQL and useand
to combine multiple conditions. See developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/… and the following pages. – Keith C Apr 28 '20 at 7:56