Condition Dependency Field Reference

The Condition Dependency object is used to store a logic of links for conditions to build dependencies of one condition on another.

Available for Calculation Type of Condition record type.

Object API name: orders__ConditionDependency__c


Field API Name Type Description

Active

orders__IsActive__c

Checkbox

Defines if the record is active and should be applied in business logic.

Controlling Condition

orders__ControllingConditionId__c

Lookup(Condition)

Specify the controlling Condition.

Available when Dependency Type is Discount To Discount or Discount To Freebie.

Controlling Freebie Condition

orders__ControllingFreebieConditionId__c

Lookup(Freebie Condition)

Specify the controlling Freebie Condition.

Available when Dependency Type is Freebie To Freebie or Freebie To Discount.

Dependency Action

orders__DependencyAction__c

Picklist

The action type to be performed. Available values:

  • Apply

    Apply (A, B): condition A will be applied if condition B is triggered.

  • Exclude

    Exclude(A, B): condition A will not be applied if condition B is applied.

  • Best Of (Available when Dependency Type is Discount To Discount.)

    Best Of(A, B): the A and B conditions are compared, and the best condition is applied: The maximum discount if the Calculation Method is Decrease on the appropriate Calculation Type. The maximum markup if the Calculation Method is Increase on the appropriate Calculation Type.

  • Reduce

    Reduce(A, B): the maximum freebie quantity in condition A will reduce by the freebie quantity that were applied when condition B triggered.

Available when Dependency Type is Freebie To Freebie.

  • This logic is applied to the maximum quantity of distributed freebies based on the value in the Freebies Quantity Max field on the Freebie Level or the value in the Freebie Ratio field on the Freebie Level if proportionality is enabled for the condition.

  • The calculated value cannot be less than the value in the Freebies Quantity Min field on the Freebie Level or Freebie Level Line Item, or the value in the Freebie Ratio field on the Freebie Level if proportionality is enabled for the condition.

  • The product quantity on the dependent condition should be more than on the controlling condition in order to avoid errors.

Dependency Type

orders__DependencyType__c

Picklist

Select the dependency type for Dependency Action, considering that the first condition is controlling and the second is dependent. Available values:

  • Discount To Discount

  • Discount To Freebie

  • Freebie To Freebie

  • Freebie To Discount

Dependent Condition

orders__DependentConditionId__c

Lookup(Dependent Condition)

Specify the dependent Condition.

Available when Dependency Type is Discount To Discount or Discount To Freebie.

Dependent Freebie Condition

orders__DependentFreebieConditionId__c

Lookup(Dependent Freebie Condition)

Specify the controlling Freebie Condition.

Available when Dependency Type is Freebie To Freebie or Freebie To Discount.

External Id

orders__ExternalId__c

Text(255) (External ID) (Unique Case Insensitive)

External record identifier for ERP/CRM system (if required).

Order

orders__Order__c

Number(18, 0)

The ordinal number of a record for prioritization during condition search.

``