---
schema_version: "1"
id: 6da1011b815456430bcb6dbc85ae863cad933b03cbb0a307290038bbce9db919
title: TerritoryProdtQtyAllocation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_territoryprodtqtyallocation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_territoryprodtqtyallocation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 912e04ef666f7a0dfd03bfe7ba09c018ef3448f25f2db53a033a0b997a5e9cde
description: Represents the quantity allocation of a product to a given territory so that the system validates against the remaining quantity or maximum disbursement limit. This object is available in API version 65.0 and later.
---
# TerritoryProdtQtyAllocation

Represents the quantity allocation of a product to a given territory so that the system validates against the remaining quantity or maximum disbursement limit. This object is available in API version 65.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### AdjustmentQuantity

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Adjustment quantity to the allocated quantity.

### AllocatedQuantity

- **Type**: double
- **Properties**: Create, Filter, Sort, Update
- **Description**: Required. Allocated quantity to the territory.

### AllocationType

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Required. Type of allocation.
- **Possible values**:
    - Drop
    - Ship

### DebitedQuantity

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Debited quantity for the territory.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp when the current user last viewed this record or list view.
    
    If this value is null, and LastReferenceDate is not null, the user accessed this record or list view indirectly.

### MaxDisbursementLimitQty

- **Type**: double
- **Properties**: Create, Filter, Nillable, Sort, Update
- **Description**: Maximum disbursement quantity for a given transaction.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Required. Name of territory product quantity allocation record.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: ID of the owner or creator of this object.
    
    This field is a polymorphic relationship field.
- **Relationship Name**: Owner
- **Refers To**: Group, User

### ProductId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: Required. Product allocated to a territory.
    
    This field is a relationship field.
- **Relationship Name**: Product
- **Refers To**: Product2

### RemainingQuantity

- **Type**: double
- **Properties**: Filter, Nillable, Sort
- **Description**: Remaining quantity for the territory.
    
    This field is a calculated field.

### TerritoryId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: Required. Territory to which the product quantity is allocated.
    
    This field is a relationship field.
- **Relationship Name**: Territory
- **Refers To**: Territory2

### TimePeriodId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: Effective period for the allocation.
    
    This field is a relationship field.
- **Relationship Name**: TimePeriod
- **Refers To**: TimePeriod