Trait_Value__c Object Reference

Object Name Trait_Value__c
Type Custom StoreConnect Object
Description 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.

Field Definitions

Field Name Type Required Unique Description
Checkbox__c Checkbox(false) No No Contains value for Checkbox Trait Types. Value could be true or false.
Currency__c Currency(18, 2) No No Contains value for Currency Trait Types.
Date__c Date No No Contains value for Date Trait Types.
Decimal__c Number(18, 6) No No Contains value for Decimal Trait Types.
Display_Name__c Text Yes No 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__c Email No No Contains value for Email Trait Types.
Long_Text_Area_Markdown__c LongTextArea No No Contains value for Long Text Trait Types. It could contain either plain text, markdown or HTML.
Number__c Number(18, 0) No No Contains value for Number Trait Types.
Percent__c Percent(18, 2) No No Contains value for Percent Trait Types.
Text__c Text No 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_Id__c Lookup(Trait_Type__c) Yes No Trait Type this trait belongs to.
URL__c URL No No Contains value for URL Trait Types.
sC_Id__c Text No Yes StoreConnect External ID, do not modify in Salesforce

For more information about how or when to use the above, see our documentation.

 

 
Back to Documentation