Newer Version Available
USING SCOPE
The optional USING SCOPE clause of a SOQL query
returns records within a specified scope. For example, you can limit the records to return
only objects that the user owns or only records in the user’s territory.
With API version 32.0 and later, you can use USING SCOPE to limit the results of a query to a specified filterScope. The syntax is:
1[USING SCOPE filterScope]
filterScope
can take one of the following enumeration values:
- Everything
- Mine
- My_Territory
- My_Team_Territory
- Team