No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
RoleOrTerritory
Version
This represents the common base type and valid values for role or territory.
RoleOrTerritory components are available in API version
24.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| caseAccessLevel | string | Specifies whether a user can access other users’ cases that are associated with accounts the user owns. This field is not visible if your organization’s sharing model for cases is Public Read/Write. |
| contactAccessLevel | string | Specifies whether a user can access other users’ contacts that are associated with accounts the user owns. This field is not visible if your organization’s sharing model for contacts is Public Read/Write or Controlled by Parent. |
| description | string | The description of the role or territory. |
| fullName | string | The unique identifier for API access. The fullName can contain only underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. This field is inherited from the Metadata component. |
| mayForecastManagerShare | boolean | Indicates whether the forecast manager can manually share their own forecast. |
| name | string | Required. The name of the role or territory. |
| opportunityAccessLevel | string | Specifies whether a user can access other users’ opportunities that are associated with accounts the user owns. This field is not visible if your organization’s sharing model for opportunities is Public Read/Write. |
Declarative Metadata Sample Definition
The following is
the definition of a role.
1<?xml version="1.0" encoding="UTF-8"?>
2<Role xmlns="http://soap.sforce.com/2006/04/metadata">
3 <caseAccessLevel>Edit</caseAccessLevel>
4 <contactAccessLevel>Edit</contactAccessLevel>
5 <description>Sample Role</description>
6 <mayForecastManagerShare>false</mayForecastManagerShare>
7 <name>R22</name>
8 <opportunityAccessLevel>Read</opportunityAccessLevel>
9</Role>The following
is the definition of a territory.
1<?xml version="1.0" encoding="UTF-8"?>
2<Territory xmlns="http://soap.sforce.com/2006/04/metadata">
3 <caseAccessLevel>Edit</caseAccessLevel>
4 <contactAccessLevel>Edit</contactAccessLevel>
5 <description>Sample Territory</description>
6 <mayForecastManagerShare>false</mayForecastManagerShare>
7 <name>T22name</name>
8 <opportunityAccessLevel>Read</opportunityAccessLevel>
9</Territory>