{"title":"Condition Object Reference","slug":"condition-object-reference","url":"https://support.storeconnect.com/articles/condition-object-reference","url_markdown":"https://support.storeconnect.com/articles/condition-object-reference.md","subtitle":null,"summary":"Condition defines what must be true for an advanced promotion reward to apply. Set the type, threshold amount, optional currency filter, and Liquid templates for custom evaluation logic.","type":"Developer_Documentation","video_url":"","keywords":"salesforce, object reference, Condition, s_c__Condition__c, api, advanced promotions","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Overview\n\nCondition defines what must be true for a [Promotion 2](promotion2-object-reference) reward to apply. Condition records are reusable — the same Condition can be linked to multiple promotions via [Promotion 2 Condition](promotion2-condition-object-reference) records.\n\n| Property | Value |\n|----------|-------|\n| **API Name** | `s_c__Condition__c` |\n| **Label** | Condition |\n| **Plural Label** | Conditions |\n| **Type** | Custom Object |\n\n## Fields\n\n| Field Label | API Name | Type | Required | Description |\n|-------------|----------|------|----------|-------------|\n| Amount | `s_c__Amount__c` | Currency(18,2) | No | Threshold value for the condition. Required for `total_value`, `total_quantity`, and `product_count` types. Not used by `always_applies` or `liquid_condition` types. |\n| Currency | `s_c__Currency__c` | Text(10) | No | ISO currency code (e.g. `AUD`, `USD`). When set, the condition only evaluates as true if the cart currency matches. Leave blank to apply to all currencies. |\n| Description | `s_c__Description__c` | TextArea | No | Internal description of this condition. |\n| Liquid Condition (POS) | `s_c__Liquid_Condition_Pos__c` | LongTextArea(5000) | No | Liquid template evaluated when this condition is used in a POS context. Used by the `liquid_condition` type only. |\n| Liquid Condition (Web) | `s_c__Liquid_Condition_Web__c` | LongTextArea(5000) | No | Liquid template evaluated when this condition is used in a web (storefront) context. Used by the `liquid_condition` type only. |\n| Type | `s_c__Type__c` | Picklist | No | The kind of check this condition performs. Default: `always_applies`. See condition types below. |\n\n## Referenced by\n\nThese objects hold a lookup or master-detail relationship to **Condition** (`s_c__Condition__c`). Where the referring record exists to join things together, **Also links to** shows what it connects this object to.\n\n| Object | Field | Type | Relationship Name | Also links to |\n|--------|-------|------|-------------------|---------------|\n| [s_c__Promotion2_Condition__c](promotion2-condition-object-reference) | `s_c__Condition_Id__c` | Lookup | Promotion2_Conditions_Condition | [s_c__Promotion2__c](promotion2-object-reference), [s_c__Reward__c](reward-object-reference) |\n| [s_c__Promotion2_Product_Scope__c](promotion2-product-scope-object-reference) | `s_c__Condition_Id__c` | Lookup | Promotion2_Product_Scopes_Condition | — |\n\n## Condition types\n\n| Value | Description | Amount required |\n|-------|-------------|-----------------|\n| `always_applies` | No qualification required — the condition always evaluates as true | No |\n| `total_value` | Cart subtotal of eligible items must be at or above the Amount | Yes |\n| `total_quantity` | Total item quantity of eligible items must be at or above the Amount | Yes |\n| `product_count` | Number of distinct products in eligible items must be at or above the Amount | Yes |\n| `liquid_condition` | Custom logic evaluated via a Liquid template at runtime | No |\n\n## Product filtering\n\nSet [Promotion 2 Product Scope](promotion2-product-scope-object-reference) records on a Condition to filter which cart items are considered before the condition is evaluated. When product scopes are present, only matching items count toward the threshold amount or quantity.\n\n:::note\nFor `liquid_condition` type, define **Liquid Condition Web** for storefront evaluations and **Liquid Condition POS** for POS evaluations. If the template for the current context is blank, the condition evaluates as true (passes).\n:::"}