Attributes

Estimated reading: 3 minutes 5 views

Introduction

To simplify, when this documentation refers to Products it’s actually refering to Product Versions.

The Attributes it’s the lowest level configuration element for a Product Version. It’s in the attributes where the user/system can set specific values for specific product properties, for instance: the color, the height, the brand, etc.

Attributes are related, and only related, to products. However, you must keep in mind that a Product’s Component it’s also a Product, so we can say that you can also add attributes to a component.

The main Attributes features are:

  • Different Data Types: Text, Decimal, Integer, Date, Time, Datetime, Checkbox, Toggle, Picklist, etc.
  • Default value by Attribute definition.
  • Validation Rules

Data Model

The Attribute is a standalone object which holds the deffinition for the corresponding product property.

On the other hand, when you assign an attribute to a Product it creates a relationship between the specified Product and Attributes (Product_Attribute_Assignment__c).

ADD DIAGRAM

Attributes and Versions

The attributes are setup at Product Version, not at Product level. This is because a Product can have different attributes depending on the Version.

It’s also important to remark that the attributes don’t have a versioning functionality, so when you edit an attribute those changes will be applied to any product version having that attribute.

Attributes Data Types

The Attributes can be of different Data Types:

Type Description Example
Text A free string Hello
Integer An integer number 120
Decimal A double 3.1416
Checkbox A boolean represented by a Checkbox true
Toggle A boolean represented by a Toggle button false
Picklist A list of defined values. This values must be added to the Attribute Domain Items related List (check specific section for more information ) Male, Female 
Date A date value, represented by a Calendar Picker 1984-05-23
Time A time value, represented by a Time Picker 16:23:00
Date and Time A date time value, represented by a Calendar Picker and a Time Picker 1984-05-23 16:23:00

Picklist Domain Items

When you define an attribute as a Picklist you need to add as many Attribute Domain Items as you desire to the picklist in the Attribute Definition record page.

Keep in mind that when you add a value you can add both the Name and the Value. Note that the attribute value will be the one considered in formulas or any other logic. The Name it’s just the literal to show in the user interface.

Field Description Example
Name The visible string in the picklist for this item. Spain
Value The internal value for this item ES

At this moment, the item Names cannot be translated but it’s in the roadmap to add multilingual support.

At some point, the Name field will be considered the internal code / value, and new Field called Visible Name (or similar) will be the one used to show in the User Interface, as right now it’s not intuitive.

Leave a Comment

       
Euphoria, forever till the end of times

Euphoria

Share this Doc

Attributes

Or copy link

CONTENTS