ProviderSampleLimitTemplate

Represents a template used to define sample limit rules for providers.

Version

ProviderSampleLimitTemplate components are available in API version 66.0 and later.

Fields

discrepancyAlertType
Description
Specifies whether discrepancies trigger an error or a warning.
isActive
Description
Indicates whether the sample limit template is currently active.
isAdvanced
Description
Indicates whether advanced rule logic is enabled for this template.
isCloned
Description
Indicates whether this template was created by cloning another template.
isLawBased
Description
Indicates whether the template enforces law-based sample limit rules.
label
Description
Specifies the display name of the sample limit template.
priorityNumber
Description
Defines the priority order in which this template is evaluated.
ruleCondition
Description
Defines the condition that determines when the rule is applied.
ruleExpression
Description
Specifies the expression used to evaluate the sample limit rule.

Declarative Metadata Sample Definition

The following is an example of a ProviderSampleLimitTemplate component.

1<?xml version="1.0" encoding="UTF-8"?>
2<ProviderSampleLimitTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
3    <fullName>SampleLimitTemplate_Standard</fullName>
4    <label>Standard Sample Limit Template</label>
5    <isActive>true</isActive>
6    <isAdvanced>false</isAdvanced>
7    <isCloned>false</isCloned>
8    <isLawBased>true</isLawBased>
9    <priorityNumber>1</priorityNumber>
10    <discrepancyAlertType>Warning</discrepancyAlertType>
11    <ruleCondition>Account.Type = 'Provider'</ruleCondition>
12    <ruleExpression>SampleQuantity &lt;= 100</ruleExpression>
13</ProviderSampleLimitTemplate>

The following is an example package.xml that references the previous definition.

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <types>
4        <members>SampleLimitTemplate_Standard</members>
5        <name>ProviderSampleLimitTemplate</name>
6    </types>
7    <version>66.0</version>
8</Package>