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.
<?xml version="1.0" encoding="UTF-8"?> <ProviderSampleLimitTemplate xmlns="http://soap.sforce.com/2006/04/metadata"> <fullName>SampleLimitTemplate_Standard</fullName> <label>Standard Sample Limit Template</label> <isActive>true</isActive> <isAdvanced>false</isAdvanced> <isCloned>false</isCloned> <isLawBased>true</isLawBased> <priorityNumber>1</priorityNumber> <discrepancyAlertType>Warning</discrepancyAlertType> <ruleCondition>Account.Type = 'Provider'</ruleCondition> <ruleExpression>SampleQuantity <= 100</ruleExpression> </ProviderSampleLimitTemplate>
The following is an example package.xml that references the previous definition.
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>SampleLimitTemplate_Standard</members> <name>ProviderSampleLimitTemplate</name> </types> <version>66.0</version> </Package>