Newer Version Available
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:
1FIND {test} RETURNING Account (id where name like '%test%'),
2 Contact (id where name like '%test%')
3 WITH DIVISION = 'Global'