Trait Value Object Reference

Overview

A specific value for a Trait_Type__c. For example, for a "Colour" Trait Type, the Trait Value would be "Red" or "Blue". These are stored individually so they can be used across multiple Product2 objects via the Trait__c object allowing for easy filtering and searching. The values are stored in different fields depending on their Trait Type - a "Decimal" Trait Type would store value on the Decimal__c field.

Property Value
API Name s_c__Trait_Value__c
Label Trait Value
Plural Label Trait Values
Type Custom Object

Fields

Field Label API Name Type Required Description
Checkbox s_c__Checkbox__c Checkbox No Contains value for Checkbox Trait Types. Value could be true or false.
Currency s_c__Currency__c Currency(18,2) No Contains value for Currency Trait Types.
Date s_c__Date__c Date No Contains value for Date Trait Types.
Decimal s_c__Decimal__c Number(18,6) No Contains value for Decimal Trait Types.
Display Name s_c__Display_Name__c Text(255) Yes Name of the Trait Value to be displayed to the user. This is autogenerated from the Trait Category, Trait Type, and Trait Value, but can be overwritten as desired.
Email s_c__Email__c Email No Contains value for Email Trait Types.
Long Text Area s_c__Long_Text_Area_Markdown__c LongTextArea(131072) No Contains value for Long Text Trait Types. It could contain either plain text, markdown or HTML.
Number s_c__Number__c Number(18,0) No Contains value for Number Trait Types.
Percent s_c__Percent__c Percent(18,2) No Contains value for Percent Trait Types.
Text s_c__Text__c Text(255) No Contains value for Text Trait Types. It could contain short text below 255 characters. Anything longer should be placed to Long_Text_Area_Markdown__c instead.
Trait Type s_c__Trait_Type_Id__c Lookup (s_c__Trait_Type__c) Yes Trait Type this trait belongs to.
URL s_c__URL__c Url No Contains value for URL Trait Types.
StoreConnect External ID s_c__sC_Id__c Text(36) No StoreConnect External ID, do not modify in Salesforce

Relationships

Field Type Related Object Relationship Name
s_c__Trait_Type_Id__c Lookup s_c__Trait_Type__c Trait_Values