Limit Rule Field Reference

The Limit Rule object is intended to store the minimum and maximum product quantity for an order and each delivery.

All appropriate limit rules are applied to a single order.

Object API name: orders__LimitRule__c


Field API Name Type Description

Amount Field

orders__AmountField__c

Text(255)

The API name of the field from the Delivery Line Item object that stores the final price for the Order, for example, orders__TotalPrice__c.

Apply Condition

orders__ApplyCondition__c

Long Text Area(32768)

The condition, under which the limit rule is applied to Delivery Line Item records in the Order.

Custom Validation Message

orders__CustomValidationMessage__c

Text(255)

Contains API name of custom label, which is displayed as the validation message when the Limit Rule is applied to the order or delivery.

If the field is empty, the standard validation message will be displayed.

Delivery Criteria Path

orders__DeliveryCriteriaPath__c

Text(255)

This field is responsible for the delivery grouping to apply limit rules to that group. Specify the criteria that will distribute deliveries into separate groups as a path to the required fields, for example, Warehouse__c,orders__DeliveryDate__c,Address__c.

  • The user must have at least permission to read all fields in the condition.

  • Fields must be on the Delivery object or related objects.

  • Not applied for the Limit Rule with the Order record type.

Exceptions Condition

orders_ExceptionsCondition__c

Long Text Area(32768)

The condition under which the limit rule is not applied to Delivery Line Item records in the Order.

Global Exception

orders_GlobalException__c

Checkbox

  • If enabled, triggers searching Exceptions Condition field in the whole order, disregarding the value of the Apply Condition field. If the Exceptions Condition is met in any delivery, the Limit Rule will not apply.

  • If disabled (by default), the standard logic of the Limit Rule with the Record type = Delivery takes place.

  • Applies only to Limit Rules with the Record type = Delivery.

Maximum Amount

orders_MaxAmount__c

Currency(16,2)

The maximum amount of all products for a single delivery or order.

The actual amount is set in the field specified in the orders__AmountField__c field.

Maximum Quantity

orders_MaxQuantity__c

Number(18, 0)

The maximum quantity of all products for a single delivery or order.

The actual quantity is set in the field specified in the orders__Quantity__c field of the Delivery Line Item object.

Minimum Amount

orders_MinAmount__c

Currency(16,2)

The minimum amount of all products for a single delivery or order.

The actual amount is set in the field specified in the orders__AmountField__c field.

Minimum Quantity

orders_MinQuantity__c

Number(18,0)

The minimum quantity of all products for a single delivery or order.

The actual quantity is set in the field specified in the orders__Quantity__c field of the Delivery Line Item object.

Order Type

orders_OrderType__c

Multipicklist

Select one or more order types to apply the limit rule.

  • Order

  • Return

  • Pre-Sale

Record Type

RecordTypeId

Record Type

It determines to which object the limit rule should be applied. The available objects:

  • Order

    • Validation is applied to overall products quantity or amount in the order. Delivery grouping based on fields in the orders__DeliveryCriteriaPath__c field is not available for this record type.

  • Delivery

    • Validation is applied only to products of a certain delivery.

    • Limit rules are applied after the split is done, i.e., the limit rule logic processes products quantity or amount per each delivery in the order. To apply the limit rule to a delivery grouped by address and date, you need to use the delivery grouping based on fields in the orders__DeliveryCriteriaPath__c field.

Sales Organization Id

orders_SalesOrganizationId__c

Lookup(Sales Organization)

If needed, specify the Sales Organization record to apply the limit rule.

``