---
schema_version: "1"
id: d78e35ac2db55edebb9d50b446bbac5831e51c5f58368d52fc2b26b2184792b0
title: ProviderSampleLimitTemplate
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_providersamplelimittemplate.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_providersamplelimittemplate.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ddc49e659fd45ee40b4d419e1b869ef9123cb546edf6842ee082094164c2d0d6
description: Setup object that represents the definition and rules of sample limits templates. This object is available in API version 65.0 and later.
---
# ProviderSampleLimitTemplate

Setup object that represents the definition and rules of sample limits templates. This object is available in API version 65.0 and later.

![Important](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert()

## Fields

### DeveloperName

- **Type**: string
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The unique name of the object in the API.

### DiscrepancyAlertType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Specifies whether a rule violation in the template is flagged as an error or a warning.
- **Default value**: Error
- **Possible values**:
    - Error
    - Warning

### IsActive

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether this template is active or not.
- **Default value**: false

### IsAdvanced

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates the type of custom template. Defines whether or not the template is advanced.
- **Default value**: false

### IsCloned

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether the template is a cloned generic template or not. Cloned generic templates and advanced templates not flagged as IsLawBased are flagged as True.
- **Default value**: false

### IsLawBased

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Indicates whether an advanced template is a country regulation or not. If the template is law-based, the DiscrepancyAlertType setting is Error.
- **Default value**: false

### Language

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: The language of the ProviderSampleLimitTemplate record.

### MasterLabel

- **Type**: string
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The label for this provider sample limit template value. This display value is the internal label that doesn't get translated.

### NamespacePrefix

- **Type**: string
- **Properties**: Filter, Group, Nillable, Sort
- **Description**: The namespace prefix that is associated with this object. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the NAMESPACE\_PREFIX\_\_COMPONENT\_NAME notation. Replace NAMESPACE\_PREFIX with the namespace prefix, and replace COMPONENT\_NAME with the component name.
    
    The namespace prefix can have one of the following values.
    
    - In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer.
    - In orgs that aren’t Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix.

### PriorityNumber

- **Type**: int
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The priority order of the cloned generic template to be applied to a product.

### RuleCondition

- **Type**: textarea
- **Properties**: Create, Update
- **Description**: Required. The rules that establish the limits for this template.

### RuleExpression

- **Type**: textarea
- **Properties**: Create, Update
- **Description**: Required. Specifies the rules to be evaluated and the boolean operation (AND/OR) for combining multiple rules.