afv-library/skills/platform-data-and-tooling-api-context-get/assets/enterprise_api/UserTerritory2Association.json

83 lines
2.6 KiB
JSON

{
"sections": [
"title",
"description",
"fields",
"special_access_rules",
"field_reference"
],
"title": "UserTerritory2Association - Data API",
"description": "Represents an association (by assignment) between a territory and a user record. Available only if Sales Territories has been enabled.",
"fields_columns": [
"type",
"properties",
"description"
],
"fields": {
"IsActive": {
"type": "boolean",
"properties": "Defaulted on create, Filter, Group, Sort",
"description": "Indicates whether the user is active (true) or inactive (false) in the given territory."
},
"RoleInTerritory2": {
"type": "picklist",
"properties": "Create, Filter, Group, Nillable, Sort, Update",
"description": "The role of the user in a territory. Possible values are: Owner, Administrator, Sales Rep. Label is Role in Territory."
},
"Territory2Id": {
"type": "reference",
"properties": "Create, Filter, Group, Sort",
"description": "The ID of the territory that the user is assigned to."
},
"UserId": {
"type": "reference",
"properties": "Create, Filter, Group, Sort",
"description": "The ID of the user who is assigned to the territory."
}
},
"special_access_rules": "Standard and partner users can access this object. If a territory model is in Active state, any standard or partner user can view that model, including its territories and assignment rules. For territories in an active model, any standard or partner user can view assigned records and assigned users based on your Salesforce sharing settings. Users cannot view territory models in other states (such as Planning or Archived).",
"field_reference": {
"Id": {
"field_label": "User Territory Association ID",
"type": "id",
"length": "18"
},
"IsActive": {
"field_label": "Active",
"type": "boolean"
},
"LastModifiedById": {
"field_label": "Last Modified By ID",
"type": "reference",
"length": "18"
},
"LastModifiedDate": {
"field_label": "Last Modified Date",
"type": "datetime"
},
"RoleInTerritory2": {
"field_label": "Role in Territory",
"type": "picklist",
"length": "255"
},
"SystemModstamp": {
"field_label": "System Modstamp",
"type": "datetime"
},
"Territory2Id": {
"field_label": "Territory ID",
"type": "reference",
"length": "18"
},
"UserId": {
"field_label": "User ID",
"type": "reference",
"length": "18"
}
},
"field_reference_columns": [
"field_label",
"type",
"length"
]
}