---
schema_version: "1"
id: 4c6005c90b4ed3d3a11d013bc35df14175b6eecb5b5657f07ba926e18f617bbb
title: UserTerritory2AssocLog
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_userterritory2assoclog.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userterritory2assoclog.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 258bee406a241afc7d2aa1e6d148d8d5de7ea1bc4d82e822ef47025056ce83b1
description: Represents a log of when a user is assigned and unassigned from a territory. This object is available in API version 57.0 and later.
---
# UserTerritory2AssocLog

Represents a log of when a user is assigned and unassigned from a territory. This object is available in API version 57.0 and later.

## Supported Calls

describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update()

## Special Access Rules

To see this object, enable Sales Territory and User Tracking on the Territory Settings page. Activate a territory model to start the tracking.

## Fields

| Field | Details |
| --- | --- |
| CurrencyIsoCode | 
Type

picklist

Properties

Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

ISO code of currency.

Possible values are:

- EUR—Euro
- INR—Indian Rupee
- USD—U.S. Dollar

The default value is USD.



 |
| EndDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

Date when the user is unassigned from a territory. If the end date is empty, the user is still assigned.



 |
| Name | 

Type

string

Properties

Filter, Group, idLookup, Sort, Update

Description

Auto-generated unique name of the log.



 |
| RoleInTerritory2 | 

Type

picklist

Properties

Filter, Group, Nillable, Sort

Description

User’s role in the territory between the start and end date. The picklist is, by default, empty. Add values to this field using Object Manager.



 |
| StartDate | 

Type

dateTime

Properties

Filter, Sort

Description

Date the user is assigned to the territory.



 |
| Territory2Id | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the territory associated with the log.

This field is a relationship field.

Relationship Name

Territory2

Refers To

Territory2



 |
| Territory2ModelId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the territory model associated with the log.

This field is a relationship field.

Relationship Name

Territory2Model

Refers To

Territory2Model



 |
| UserId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the user associated with the log.

This field is a relationship field.

Relationship Name

User

Refers To

User



 |