Skip to main content

Create a custom attribute (datapoint)

You can create custom attributes for specific datapoints or information that does not fit in the pre-defined attributes.

Andreas Stensig avatar
Written by Andreas Stensig
Updated over a month ago

prduct.com has a lot of pre-defined attributes (datapoints), but in some cases you would like to define your own attributes.

How to create a new custom attribute?

  1. Go to the "data" tab and head to the "Data models" tab.

  2. Scroll down the "custom attributes" headline. Here you can see, edit and delete all your custom attributes.

  3. Create a new attribute with the green bottom "Create Custom attribute".

  4. Set up basic information:

    1. Label name - the displayed name for the user.

    2. Model name - the unique name for the system to recognize the attribute. You can call this the same, but the model name need to be unique and may only contain letters, numbers, dashes and underscores.

    3. Description - optional if you want to add an explanation for the attribute.

    4. Should the attribute be translatable – Enable this feature if the attribute should vary depending on the selected language. Learn more here.

  5. Choose what documents this attribute should be available for. Etc. products, batch, Invoice an so on.

  6. Set up the fields that should be a part of the attribute. This could be a text field, number, file or a multi select option. You drag and drop the fields from the left to the right. You can edit each field by clicking on the name of the field.

  7. Pres "Save Attribute" when you are done.

You can now add this attribute to the documents you have choose for it to be active on or as part of a datamodel.

Should the attribute be translatable?

When creating a custom attribute, you can choose whether the attribute should vary depending on the selected language. This feature should only be enabled for attributes that are language-dependent. Activate it only if you are working with multiple language layers.

General recommendation: A product description, a price, or a country-specific attribute will typically vary depending on whether it relates to a Danish or English market/context. In contrast, an ID number, weight, or dimensions usually do not change, regardless of whether you are working in an English or Danish environment.

How to mass create new custom attributes?

You can mass create/upload new custom attributes (just like you can with products etc. Be aware: When using this method you can not create complex attributes with more than one field and you can not create the fields: "select", "file" or "date".

How to upload:

  1. Click your name in left corner and go to my organization.

  2. Go to the tab Data Settings.

  3. Find the bottom "CSV Import Attributes" and click it.

  4. Now the import pop-up shows. Here you find an example CSV-file, that we recommend you use as a template.

  5. When the CSV file is ready, upload it and map the columns.

How to fill out the template:

We recommend using this template (can also be found in the pop-up).
​
Here is a list of the columns with explanation and inputs options:

Columns

Explanation

Input options:

Label Name

The name of the attribute, that is visible within the system.

Any text

Model Name

The name of the attribute, that is used in backend.

Any text (This can not contain spaces).

Input Type

The type of inputs that the attribute can hold

input

file

html

checkbox

Input Label Name (optional)

The name of the field, that is visible within the system.

Any text

Input Model Name (optional)

The name of the field, that is used in backend.

Any text (This can not contain spaces).

Description

The description of the attribute. Could be what it is used for or any other context.

Any text

Documents Types

What documents should the attribute be available for.

You have to type use []

If you want to add several types use &. For example:

[brands&products]

[brands]

[products]

[locations]

[categories]

[parts]

[packagings]

[batch]

[unique]
​

Value Type (optional)

If you have choosen "input" in Input Type, then here you can choose what kinda text. By default this is set to text.

text

number

date

Attachment icon
Did this answer your question?