Item attributes are a set of properties assigned to an item that define product characteristics. This article shows you how to use item attributes in Fabric PIM.

PIM Attributes

An item attribute is used to define a product characteristic. Each product consists of several different characteristics. For example, a product name, an identity number, and a product description are common attributes of any product. Similarly, attributes such as dimensions, color, and material determine the physical attributes of a product. Product attributes directly impact user experience and purchase decisions. This is why it’s important to optimize your product attributes with PIM.

In PIM, attributes are key-value pairs (e.g. Brand: Nike) that hold information for each property of the product. ‌Attributes ensure all the different products have the relevant and correct information across sales channels. Keeping each piece of relevant information as a separate attribute—instead of conveying the brand, the model, and the dimensions in a single paragraph—makes product information management scalable.

PIM supports the following types of item attributes for storing different types of product information:

  • Text: This attribute type supports a sequence of characters. There are no restrictions on what can be stored in this attribute type. You may store text, numbers, special characters, or any combination. Text attribute has three subtypes which need to be defined. These are-
    • Small Text
    • Text Area
    • HTML
  • Number Only: This attribute type accepts, stores, and retrieves only numbers. Use this attribute type when the value is always a number.
  • Date: This attribute type addresses all of your date-related requirements in the context of a product. You’ll see a calendar in PIM to add the date and select one of the formats listed below. Bulk import of the Date attribute type uses the date format selected when the attribute was created. The selected date format cannot be changed. To change it, you must delete the attribute and create it again using the required format. Date formats that PIM supports include:
    • MM/DD/YYYY
    • MM-DD-YYYY
    • DD/MM/YYYY
    • DD-MM-YYYY
    • YYYY/MM/DD
    • YYYY-MM-DD
  • Boolean: This attribute type represents the Boolean value (True/False) for a product attribute. While importing attributes from an external system, make sure the True or False values are specified for all Boolean attribute types.
  • List of Values: This attribute type lets you create attributes that have a defined value across the product catalog. Only one value from the list can be selected while creating an item.
  • Serial: This attribute type lets you create an auto-increment number type attribute. You can specify where the number starts from and what the increment is. Each time a new item is created with this attribute, the value is automatically calculated by incrementing the previous value by the specified increment.

For each attribute type, some fields are optional while some are required. If required fields are not provided, an “Unable to create an attribute” error message will appear. To fix this, you need to provide the data that aligns with the corresponding attribute type.

Use these properties to add content to your attributes:

  • Attribute title: This attribute property represents the title of an attribute.
  • Description: This attribute property represents the description of an attribute.
  • Calculation Formula: If an attribute is calculated based on other attribute values, you must set a formula for the calculation. To add a formula, select Yes for the field Is this a formula driven attribute? — then add the JavaScript formula.
  • Validation Formula: If an attribute requires data validations (simple or complex), you can write them in JavaScript. To add validations, select No for the field Is this a formula driven attribute? — then add the JavaScript validation. (Validations don't apply for calculated attributes.)
  • Mandatory: This attribute property marks an attribute as required. You can only mark an attribute as required if it's mandatory across hierarchies in PIM.
  • Set a Range: Setting a range is applicable only for the Number Only attribute type. Either set a range or use a formula—not both.
  • Date Format: This attribute property lets you set a date format and is only applicable for the Date attribute.
  • Decimal: This attribute property can be configured only for the Number Only attribute type to allow (or restrict) decimal values.
  • Values: This attribute property is applicable only for the List of Values attribute type to ensure at least one value is provided to create a list for the attribute.

The following table shows the attribute types and their properties. This will help you determine the mandatory and optional properties of an attribute type.

AttributesTextNumber OnlyDateBooleanList of ValuesSerial
Calculation FormulaOptionalOptionalOptionalOptionalOptionalN/A
Validation FormulaOptionalOptionalOptionalOptionalOptionalN/A
Mandatory CheckRequiredRequiredRequiredRequiredRequiredRequired
Set a RangeN/AOptionalN/AN/AN/AN/A
Date FormatN/AN/ARequiredN/AN/AN/A

To ensure data quality, provide one or more validations based on the selected attribute type.

Sometimes, businesses need attributes generated or calculated based on other attribute values for the same item. This is useful when attributes are dynamic in nature. For example, the Display Name shown on a website is sometimes the concatenation of the item's title, brand, and color. Another example of a calculated value is the Area of a rug that can be calculated by multiplying Length and Width. Without calculation formulas, maintaining attributes like this is not scalable since each value needs edited in multiple places.

PIM lets you calculate such values of an attribute using a low-code JavaScript formula. 


Frequently-used formulas include:

Divideawait attribute("weight").value() / await attribute("volume").value()
Multiplyawait attribute("ratio").value() * 100
Sumawait attribute("grams sugar").value() + await attribute("grams fiber").value()
Subtractawait attribute("cost").value() - await attribute("discount").value()
Concatenateawait attribute("weight").value() + “ ” + await attribute("weight unit").value()


Note: Values in double quotes (" ") represent the Title of the reference attribute and refer to the absolute value of the attribute being used for calculation.

To ensure data integrity and quality, PIM lets you specify business validations on attributes using a low-code Javascript formula. 

Frequently-used validations include:

ValidationExample NeedExample Code
Minimum lengthYou need a minimum character length for a description.await attribute().value().length > 5
Maximum lengthYou need a maximum length for a title.await attribute().value().length < 200
URL checkYou need to confirm an image is a URL./<url-regex>/.test(await attribute().value())
Past date check (today)You need to confirm a date is today or earlier (i.e. manufacture date).await attribute().value() <= new Date()
Future date check (today)You need to confirm a date is today or after (i.e. an expiration date).await attribute().value() >= new Date()
Past date check (date)You need to confirm a date is before a specified date (i.e. warranty period).await attribute().value() <= new Date(1994, 10, 17)
Future date check (date)You need to confirm a date is after a specified date (i.e. presale date).await attribute().value() >= new Date(1994, 10, 17)
Boolean valueYou need to confirm that a boolean value is true (i.e. washable product).await attribute().value() == true

  1. Navigate to the Item Attributes page from the left panel within PIM.
  2. Click Create an attribute in the upper-left corner of the Attributes page.
  3. In the Create attribute dialog box that appears, enter the following:
    • Attribute Title
    • Description 
    • Attribute Type
    • Attribute Details
  4. Click Save.


Create item Attribute
Create item Attribute

  1. Go to the Item Attributes page within PIM.
  2. From the list of attributes, select the one you want to update.
  3. Make changes in the Edit Attribute dialog box. 
  4. Click Save.


    • You can not change the Attribute Type once it's configured.
    • You can not change the date format for the Date attribute type once it's configured.

    1. Go to the Attributes page within PIM.
    2. From the list of attributes, select the attribute you want to delete.
    3. Click Delete in the Edit Attribute dialog box.
    4. A Delete Attribute dialog box will open to confirm your action.
    5. Click Delete.

    Note: You can only delete an attribute if it is not part of any hierarchy.

    In order to bulk import attributes, you need to prepare the CSV template here. The list below explains the fields within the CSV template. Complete as many fields as possible before uploading your CSV file to PIM.

    1. Attribute Title (Mandatory): The name of the attribute
    2. Type of Attribute (Mandatory): Text, Number Only, Date, Boolean, or List
    3. Description (Optional): More details about the attribute
    4. Decimal (Optional): Only relevant for Number type attributes. When TRUE, the attribute allows decimal values; when FALSE, only whole numbers are accepted.  The default value is TRUE.
    5. Min (Optional): Only relevant for Number type attributes; defines the minimum value for attribute validation
    6. Max (Optional): Only relevant for Number type attributes; defines the maximum value for attribute validation
    7. Date Format (Mandatory): This field is Mandatory only for Date type attributes. It defines the date format for the field. Without a format, the attribute will not be imported. Acceptable formats include:
      • MM/DD/YYYY
      • MM-DD-YYYY
      • DD/MM/YYYY
      • DD-MM-YYYY
      • YYYY/MM/DD
      • YYYY-MM-DD
    8. Calcution Formula (Optional): Populate with a formula to calculate attribute values.
    9. Validations Formula (Optional): Populate with a formula to set business validations on attribute values.

      To upload the CSV file to PIM:

      1. Click Import Attribute.
      2. Select the file you want to upload.
      3. Click Upload.
      4. PIM will queue your file and import your attributes.
      • Go to the Attribute List page.
      • Click Import History.
      • View a list of all initiated imports, along with their status.
      • Click any of the history items to show item import details, including any errors.
      • You can export a file of attributes with errors. This lets you correct the errors and re-upload the items.

      Last update: Aug 18, 2021

      Have any questions?
      Let's Talk.