> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How-to guides: Manage custom attributes

> This document shows how to find, add, and edit custom attributes, fill them in on records, and restore a copied value.

## Find custom attributes

Each [custom attribute](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#custom-attribute) appears on the **Customers**, **Contracts**, or **Products** screen, depending on the record that it describes.

### Prerequisites

* You need a role with the **Can Read Organisation Config** permission.

### Steps

1. Go to **Settings** > **Custom Attributes**.
2. Click **Customers**, **Contracts**, or **Products**.

   The screen lists the custom attributes of that kind of record, with the name and the [custom attribute key](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#custom-attribute-key) of each.

## Add a custom attribute

Add a custom attribute on the **Customers**, **Contracts**, or **Products** screen.

### Prerequisites

* You need a role with the **Can Read Organisation Config** and **Can Create Organisation Config** permissions.
* To limit the custom attribute to one [business entity](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#business-entity), the business entity must exist. See [Add a business entity](https://zenskar.com/docs/20260301/zenskar-modules/settings/business-entity.md#add-a-business-entity).

### Steps

> [!CAUTION]
>
> The custom attribute key and type cannot change after you add it. Check them before you click **Add attribute**.

1. Go to **Settings** > **Custom Attributes**.

2. Click **Customers**, **Contracts**, or **Products**.

3. Click **Add customer attribute**, **Add contract attribute**, or **Add product attribute**.

   The screen with that title opens.

4. In **Name**, enter a name.

   > [!NOTE]
   >
   > The name must be different from the name of every other custom attribute, ignoring capitalization.

   The dashboard shows the generated key next to **Auto-generated key:**. The dashboard generates the key by changing the name to lowercase and replacing each run of other characters with one underscore. For example, `Sales region` becomes `sales_region`.

5. Optional: to replace the generated key, click the edit icon next to it, and enter a key in **Key**.

   > [!NOTE]
   >
   > The key must be different from the key of every other custom attribute. The keys `crm_source`, `crm_deal_id`, `exempt_tax`, `tax_exemption_number`, `entity_use_code`, `customer_transaction_type`, and `invoice_consolidation_enabled` are reserved for Zenskar.

   The key can have up to 64 characters. After you enter a key, the key no longer changes with the name.

6. Optional: click **Description**, and enter a description.

   The description appears under the field on the screen of the record.

7. In **Type**, select the [custom attribute type](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#custom-attribute-type).

   Changing the type clears the options and the default value.

   | Custom attribute type | What a value holds | Example value |
   | - | - | - |
   | Text | Any text | `Northern office` |
   | Whole number | A number without decimals | `12` |
   | Decimal number | A number that can have decimals | `12.5` |
   | Checkbox | `Yes` or `No` | `Yes` |
   | Dropdown | One option from a list that you set | `EMEA` |
   | Multi-select | Any number of options from a list that you set | `EMEA`, `APAC` |
   | Array | A list of text items | `gold`, `renewal` |

8. For **Dropdown** or **Multi-select**, enter each option in **Options**, and press Enter after each one.

   Removing an option clears it from the default value.

9. Optional: in **Default value**, set the value that new records of this kind start with.

   Existing records do not get the default value, unless the custom attribute is required.

10. Optional: for a customer or contract attribute, select one business entity in **Applies to**.

    The custom attribute appears only on the records of the selected business entity.

11. Optional: select **Required**.

    > [!WARNING]
    >
    > An existing record is affected in two cases:
    >
    > * You create a new required custom attribute.
    > * A custom attribute already added to the record without a value becomes required later.
    >
    > The next save of the record then has one of two results, even when the save changes another field:
    >
    > * A required custom attribute with a default value: if you choose to not enter a value, the record gets the default value. That value may be wrong for the record. For example, a customer in Asia gets the default value `EMEA`.
    > * A required custom attribute without a default value: the record cannot be saved until it has a value.
    >
    > To avoid both results, do not select **Required** yet. After you set the values on your existing records, edit the custom attribute, and select **Required**.

    A new record without a value for the custom attribute gets the default value. Without a default value, you must enter a value for the custom attribute before you can save a new record.

12. Optional: select **Copy to new contracts, invoices and journal entries** for a customer attribute, or **Copy to new invoices and journal entries** for a contract attribute.

    New records receive a [copied value](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#copied-value) when they are created. Later changes to the value on the customer or the [contract](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract) do not reach those records.

13. Click **Add attribute**.

The dashboard confirms the addition. The list shows the new custom attribute.

See [Add and edit screens: fields and their rules](https://zenskar.com/docs/20260301/zenskar-modules/settings/custom-attributes/reference.md#add-and-edit-screens-fields-and-their-rules).

## Edit a custom attribute

You can change every field of a custom attribute except its custom attribute key and its custom attribute type. Changes apply from now on. Values already saved on records stay as they are.

### Prerequisites

* You need a role with the **Can Read Organisation Config** and **Can Update Organisation Config** permissions.
* To move the custom attribute to one [business entity](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#business-entity), that business entity must exist. See [Add a business entity](https://zenskar.com/docs/20260301/zenskar-modules/settings/business-entity.md#add-a-business-entity).

### Steps

1. Go to **Settings** > **Custom Attributes**.

2. Click **Customers**, **Contracts**, or **Products**.

3. Click the edit icon of the custom attribute.

   The **Edit customer attribute**, **Edit contract attribute**, or **Edit product attribute** screen opens. The dashboard shows the key and the type as read-only values.

4. Optional: in **Name**, change the name.

   > [!NOTE]
   >
   > The name must be different from the name of every other custom attribute, ignoring capitalization.

   The key does not change with the name. Imports, exports, and templates that use the key keep working.

5. Optional: in **Description**, change the description. If the screen shows a **Description** button, click it first.

   The description appears under the field on the screen of the record.

6. Optional: for **Dropdown** or **Multi-select**, add or remove options in **Options**. Press Enter after each new option.

   Removing an option clears it from the default value. A record that uses the removed option keeps it, and shows it as `<option> (removed)`.

7. Optional: in **Default value**, change the default value.

   New records start with the new default value. Existing records keep their values, unless the custom attribute is required and a record has no value.

8. Optional: for a customer or contract attribute, change the business entity in **Applies to**.

   If you select one business entity, the custom attribute no longer applies to the records of other business entities. Those records keep their values, but the dashboard no longer shows them.

9. Optional: select or clear **Required**.

   > [!WARNING]
   >
   > An existing record is affected in two cases:
   >
   > * You create a new required custom attribute.
   > * A custom attribute already added to the record without a value becomes required later.
   >
   > The next save of the record then has one of two results, even when the save changes another field:
   >
   > * A required custom attribute with a default value: if you choose to not enter a value, the record gets the default value. That value may be wrong for the record. For example, a customer in Asia gets the default value `EMEA`.
   > * A required custom attribute without a default value: the record cannot be saved until it has a value.
   >
   > To avoid both results, do not select **Required** yet. After you set the values on your existing records, edit the custom attribute, and select **Required**.

   If you clear **Required**, a record can be saved without a value. Values already saved on records stay as they are.

10. Optional: for a customer attribute, select or clear **Copy to new contracts, invoices and journal entries**.

    If you select the checkbox, new [contracts](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#contract) and invoices of the customer receive a [copied value](https://zenskar.com/docs/20260301/zenskar-modules/settings/glossary.md#copied-value). If you clear the checkbox, they stop receiving the value. A new contract still shows the customer attribute, with the value of the customer. The contract saves that value only if you change it.

11. Optional: for a contract attribute, select or clear **Copy to new invoices and journal entries**.

    If you select the checkbox, new invoices of the contract receive a copied value. If you clear the checkbox, they stop receiving the value.

12. Click **Save changes**.

The dashboard confirms the save.

See [Add and edit screens: fields and their rules](https://zenskar.com/docs/20260301/zenskar-modules/settings/custom-attributes/reference.md#add-and-edit-screens-fields-and-their-rules).

## Fill in custom attributes on a record

Set the values of custom attributes when you edit a customer, a contract, or a [product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product). **Custom attributes** also appears when you create one of these records.

### Prerequisites

* To see the custom attributes of a record, you need a role with the **Can Read Organisation Config** permission.
* To edit a customer, you need a role with the **Can Read Customer** and **Can Update Customer** permissions.
* To edit a contract, you need a role with the **Can Read Contract** and **Can Update Contract** permissions.
* To edit a product, you need a role with the **Can Read Product** and **Can Update Product** permissions.

### Steps

1. Open the edit screen of the record:
   * On the customer screen, click **Edit**. The **Edit customer** screen opens.
   * On the contract screen, click **Edit details**. The **Edit contract** screen opens.
   * On the product screen, click **Edit**. The **Edit product** screen opens.

2. Under **Custom attributes**, set each value.

   > [!WARNING]
   >
   > If a multi-select field holds a removed option and you change the field, the save is rejected. To save, remove the removed option from the field.

   > [!WARNING]
   >
   > A checkbox that the record has never saved saves `No` when the box is clear, even when the default value is `Yes`.

   A required custom attribute needs a value. If you leave its field empty and it has a default value, the record gets the default value. A customer attribute on a contract does not need a value, even when the customer attribute is required. A record keeps an option that was removed, while the field stays unchanged.

3. Save your changes:
   * In the **Edit customer** screen, click **Save changes**.
   * In the **Edit contract** screen, click **Save**. For a contract that you are still creating, click **Apply**.
   * In the **Edit product** screen, click **Save**.

The dashboard confirms the save. On the screen of the record, **View** next to **Custom attributes** shows the saved values.

See [Custom attributes on records: values and their rules](https://zenskar.com/docs/20260301/zenskar-modules/settings/custom-attributes/reference.md#custom-attributes-on-records-values-and-their-rules).

## Restore a copied value on a new contract

A new contract starts with the copied values of its customer. If you change a copied value before you finish creating the contract, you can return to the value of the customer.

### Prerequisites

* You need a role with the **Can Read Organisation Config**, **Can Read Contract**, and **Can Create Contract** permissions.
* The field must show **Edited for this contract**.

### Steps

1. Open the screen of the contract that you are still creating: the **New contract** screen or the **Edit contract** screen.
2. Under **Custom attributes**, find the field that shows **Edited for this contract**.
3. Click **Restore**.

   The field shows the value of the customer again, with **This value is from the customer** below it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.