WITH DivisionFilter

The optional WITH clause allows you to filter all search results based on division. Although you can also filter on an object's Division field within a WHERE clause, using WITH is preferable because:

For example:

FIND {test} RETURNING Account (id where name like '%test%'),
                      Contact (id where name like '%test%')
            WITH DIVISION = 'Global'
Note
  • Users can perform searches based on division regardless of whether they have the “Affected by Divisions” permission enabled.
  • All searches within a working division also include the global division. For example, if you search within a working division called Western Division, your results will include records found in both the Western Division and the global division.
© Copyright 2000-2010 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.