---
schema_version: "1"
id: 690be5f9e5837105802c620055d85d79a90717174107cdfebfdccff621986dc8
title: ProviderSampleLimit
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_providersamplelimit.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_providersamplelimit.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 10b541e5e266acb0a18c23f2f3ebff24869bb1b402d5b1cb239b4649424d38d1
description: Represents sample limits and remaining quantity applied to a given account and product. This object is available in API version 65.0 and later.
---
# ProviderSampleLimit

Represents sample limits and remaining quantity applied to a given account and product. 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

### AccountId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: Required. The account that's linked to the sample limit.
    
    This field is a relationship field.
- **Relationship Name**: Account
- **Relationship Type**: Master-detail
- **Refers To**: Account (the master object)

### CurrencyIsoCode

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: The ISO currency code associated with the currency values in the provider sample limit.
- **Default value**: USD
- **Possible values**:
    - USD—U.S. Dollar

### 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.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Required. The name of the provider visit sample limit record.

### ProductId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The product that's linked to the sample limit.
    
    This field is a relationship field.
- **Relationship Name**: Product
- **Refers To**: Product2

### PrvdSampleLmtTemplateId

- **Type**: reference
- **Description**: Required. The provider sample limit template that's associated with provider sample limit.
    
    This field is a relationship field.
- **Relationship Name**: PrvdSampleLimitTemplate
- **Refers To**: ProviderSampleLimitTemplate

### PrvdSampleLmtTemplateName

- **Type**: string
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: Required. The provider sample limit template associated with the provider sample limit.

### Rule

- **Type**: textarea
- **Properties**: Create, Update
- **Description**: Required. Stores the rules for allocating sample limits to the linked account.

### SourceSystemIdentifier

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Nillable, Sort, Update
- **Description**: The ID of the record in the external source system for data integrations.

### SourceSystemName

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The name of the external source system from which the record was imported.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[ProviderSampleLimitHistory](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.