Use the Semicolon and Comma characters to add filter values to multi-select picklist fields.
A semicolon is used as a special character to specify AND. For example, the following notation: 'AAA;BBB' means ' AAA' and ' BBB':
A comma is used as a special character to specify OR. For example, the following notation: 'AAA','BBB' means ' AAA' or ' BBB':
Examples:
1.
Select id, name from Account where MSP1__c includes ('AAA;BBB')
The query filters on values in the MSP1__c field that contains either of these values:
AAA and BBB selected.
2.
Select id, name from Account where MSP1__c includes('AAA;BBB','CCC')
The query filters on values in the MSP1__c field that contains either of these values:
AAA and BBB selected.
CCC selected.
3.
Select id, name from Account where MSP1__c includes('AAA', 'BBB','CCC')
The query filters on values in the MSP1__c field that contains either of these values:
AAA selected.
BBB selected.
CCC selected.
Read more on how to Query Multi-Select Picklist.
000386734

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.