Salesforce Developer Soql Multi Select Picklist

salesforce-developer-soql

// Salesforce - Developer - SOQL - Querying multi-select picklist:

SELECT Id, MSP1__c FROM CustObj__c WHERE MSP1__c = 'AAA;BBB';
SELECT Id, MSP1__c FROM CustObj__c WHERE MSP1__c != 'AAA;BBB';
SELECT Id, MSP1__c FROM CustObj__c WHERE MSP1 includes ('AAA;BBB','CCC');
SELECT Id, MSP1__c FROM CustObj__c WHERE MSP1 excludes ('AAA;BBB','CCC');
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License