{"title":"Trait Type Object Reference","slug":"trait-type-object-reference","url":"https://support.storeconnect.com/articles/trait-type-object-reference","url_markdown":"https://support.storeconnect.com/articles/trait-type-object-reference.md","subtitle":null,"summary":"A specific type of trait such as Width, Height, Color, Size. This belongs to a Trait Category and can have many Trait Values.","type":"Developer_Documentation","video_url":"","keywords":"salesforce, object reference, Trait Type, s_c__Trait_Type__c, api","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Overview\n\nA specific type of trait such as Width, Height, Color, Size. This belongs to a Trait Category and can have many Trait Values.\n\n| Property | Value |\n|----------|-------|\n| **API Name** | `s_c__Trait_Type__c` |\n| **Label** | Trait Type |\n| **Plural Label** | Trait Types |\n| **Type** | Custom Object |\n\n## Fields\n\n| Field Label | API Name | Type | Required | Description |\n|-------------|----------|------|----------|-------------|\n| Display As Filter | `s_c__Display_As_Filter__c` | Checkbox | No | If checked, the trait type would be displayed as a filter option for product search. |\n| Display Name | `s_c__Display_Name__c` | Text(255) | Yes | Name of the Trait Type to be displayed to the user. |\n| Display on Product Page | `s_c__Display_On_Product_Page__c` | Checkbox | No | If set as true, all related Traits for this Trait Type will be included on the Traits collection in liquid. |\n| Position | `s_c__Position__c` | Number(18,0) | No | The position of this Trait Type. Lower numbers are shown first, objects without a number are sorted alphabetically by name |\n| Trait Category | `s_c__Trait_Category_Id__c` | Lookup ([s_c__Trait_Category__c](trait-category-object-reference)) | Yes | The Trait Category for this Trait Type belongs to. |\n| Unit | `s_c__Unit__c` | Picklist | No | Unit provides a way to further clarify what the value of the Trait Type is. For example, the Trait Type Value_Type__c might be a \"Number\" which is a decimal value, but the unit might be \"Centimetres\" which then would be displayed on the store as \"2.3 cm\". |\n| Value Type | `s_c__Value_Type__c` | Picklist | Yes | The nature of values for this Trait Type. Examples of valid types are Checkbox, Currency, and Number. |\n| StoreConnect External ID | `s_c__sC_Id__c` | Text(36) | No | StoreConnect External ID, do not modify in Salesforce |\n\n## Relationships\n\n| Field | Type | Related Object | Relationship Name |\n|-------|------|----------------|-------------------|\n| `s_c__Trait_Category_Id__c` | Lookup | [s_c__Trait_Category__c](trait-category-object-reference) | Trait_Types |\n\n## Referenced by\n\nThese objects hold a lookup or master-detail relationship to **Trait Type** (`s_c__Trait_Type__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__Product_Trait_Template_Item__c](product-trait-template-item-object-reference) | `s_c__Trait_Type_Id__c` | Lookup | Product_Trait_Template_Items | — |\n| [s_c__Trait__c](trait-object-reference) | `s_c__Trait_Type_Id__c` | Lookup | Traits | — |\n| [s_c__Trait_Value__c](trait-value-object-reference) | `s_c__Trait_Type_Id__c` | Lookup | Trait_Values | — |"}