WITH DivisionFilter
WITH DivisionFilter is an optional clause that can be added to a SOSL query to filter all search results based on the division field. It pre-filters all records based on the division before applying other filters. You can also specify a division by its name rather than by its ID.
For example:
- Users can perform searches based on division regardless of whether they have the “Affected by Divisions” permission enabled.
- All searches within a specific division also include the global division. For example, if you search within a division called Western Division, your results include records found in both the Western Division and the global division.