Custom attributes
Walkthroughs
Walkthroughs
You can start with a walkthrough instead of reading this document first. A walkthrough is the practical extension of the concepts in this document. It puts them into practice through one example with concrete values. Each part of the walkthrough explains the concepts that its steps apply and links to the sections that cover them.
Map of concepts
Map of concepts
Custom attributes: details that you add to records
A custom attribute is a field that an organization adds to customers, contracts, or products to record details that their fixed fields do not hold.

This conceptual diagram shows what a custom attribute has, with a product as an example of a record that uses custom attributes.
A custom attribute cannot be deleted.
The kind of record that a custom attribute belongs to cannot change after the custom attribute is created.
Scope: which records a custom attribute applies to
A custom attribute has one of two scopes:
A custom attribute scoped to one business entity applies only to the records of that business entity. Changing the scope of a custom attribute does not change the values saved on records.
Required values: what a record must have
A required custom attribute needs a value on every record, such as a sales region on every customer. It works as follows:- Saving a record without a value writes the default value.
- Without a default value, saving a record without a value fails.
- You cannot remove its value from a record of the kind that it belongs to.
Custom attribute keys: how a custom attribute is identified
A custom attribute key is the identifier of a custom attribute. A custom attribute has a name and one custom attribute key:
A custom attribute key cannot change after the custom attribute is created. The name can change at any time, without affecting the custom attribute key or anything that uses it.
Custom attribute types: what a value can hold
A custom attribute type is the kind of value that a custom attribute holds. A custom attribute type cannot change after the custom attribute is created. Each custom attribute has one of the following custom attribute types:Options: what a list value can be
The list types, dropdown and multi-select, use a list of options:- A value must come from the list of options.
- A record keeps an option that was removed from the list.
Default values: what a new record starts with
A default value must fit the custom attribute type, such asEMEA for a sales region. It works as follows:
- A new record without a value gets the default value of the custom attribute.
- Adding or changing a default value does not change existing records.
Copied values: how new records receive values
A copied value is the value of a custom attribute that a new record receives from the customer or the contract that it belongs to.Copied values keep records auditable.
Sales region, which copies to new contracts and invoices of Acme Corp. The value of Sales region on Acme Corp starts as APAC.
Behavior: how copied values work
- A new record receives a copied value once, when the record is created.
Contract_1receivesAPACwhen your billing team creates it. - A copied value does not change when its source changes. When
Sales regionon Acme Corp changes toAmericas,Contract_1keepsAPAC.Contract_2, created after that change, receivesAmericas. - Draft and upcoming invoices are an exception. When an active contract changes, Zenskar rebuilds its draft and upcoming invoices. Each rebuilt invoice receives the copied value again. When
Sales regiononContract_1changes toEMEA, each draft invoice ofContract_1receivesEMEA. Other invoices keep their values. - A change to a copied value does not change its source. When
Sales regiononContract_1changes toEMEA, Acme Corp keepsAmericas. - A new record receives the copied value from the nearest record that has a value. The invoice receives
EMEAfromContract_1. IfContract_1had no value, the invoice would receiveAmericasfrom Acme Corp. - A value that uses an option removed from the list still copies. If
Americasis removed from the list, a new contract of Acme Corp still receivesAmericas. - Turning copying on or off affects only new records. If copying is turned off,
Contract_1andContract_2keep their values, but a new contract of Acme Corp receives no value. - A record that can receive a copied value does not need a value, even when the custom attribute is required. If
Sales regionis required, Acme Corp needs a value, butContract_1does not. - A record that can receive a copied value does not get the default value. If
Sales regionhas the default valueEMEAand Acme Corp has no value,Contract_1has no value.