225k views
0 votes
Which of the following are valid SOSL clauses. Choose 4.

1. WITH NETWORK.
2. WITH DivisionFilter.
3. WITH DATA CATEGORY.
4. WITH PricebookID.
5. WITH CampaignID.
6. WITH DATA TYPE.
7. WITH SOQL.

1 Answer

5 votes

Final answer:

The valid SOSL clauses from the options provided are WITH NETWORK, WITH DATA CATEGORY, and WITH DATA TYPE. So, options 1, 3 and 6 are correct.

Step-by-step explanation:

The question pertains to Salesforce Object Search Language (SOSL) and its valid clauses. In Salesforce, SOSL is used to perform text searches in the search index. When choosing valid SOSL clauses, we need to use options that are part of the official SOSL syntax.

WITH DATA CATEGORY - This is used to specify data category filtering criteria for the query.

WITH NETWORK - This clause is used when specifying a network to search in for Salesforce communities.

WITH DivisionFilter - While 'Division' is a field that can be filtered on in SOQL, it is not a valid SOSL clause.

WITH PricebookID - This specific clause is not part of the SOSL syntax.

WITH CampaignID - Similar to the above, this is not a recognized SOSL clause.

WITH DATA TYPE - When you need to filter search queries based on the type of data.

WITH SOQL - This is not a valid clause as SOSL and SOQL are different query languages and are not used together in this manner.

The correct SOSL clauses from the options provided are therefore WITH NETWORK, WITH DATA CATEGORY, and WITH DATA TYPE. The fourth option does not exist in the provided list, indicating there may be a mistake in the question as it requires choosing four valid clauses.

User Bryan Massoth
by
8.8k points