Skip to main content

Story: sales region as a custom attribute for customer records

Your company sells access to a messaging API. The finance team reports revenue by sales region. A customer record has no field for the sales region. A custom attribute adds that field. New contracts also need the sales region, without your billing team entering it again on each one. Your billing team adds the custom attribute Sales region. It sets the value of Sales region on the customer Acme Corp. It checks that value on a new contract. It then follows that value over time. The walkthrough puts the following concepts into practice: custom attribute, custom attribute key, custom attribute type, options, default values, required values, scope, and copied value. The custom attribute uses these settings: The company and the customer are fictional.

Prerequisites

  • You need a role with these permissions: Can Read Organisation Config, Can Create Organisation Config, Can Read Customer, Can Update Customer, Can Read Contract, and Can Create Contract.
  • The customer Acme Corp must exist.

Add the customer attribute

Your billing team adds Sales region as a customer attribute. A sales region describes the customer.
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. The Customers screen shows the customer attributes.
  2. Click Add customer attribute. The Add customer attribute screen opens.
  3. In Name, enter Sales region. The dashboard shows the generated key, sales_region. Imports, exports, and templates identify the custom attribute by this custom attribute key.
  4. In Type, select Dropdown. The finance team groups revenue by sales region. Every customer must therefore use the same few region names. Two custom attribute types can hold a region name. They differ in what your billing team can enter. Your billing team needs the dropdown custom attribute type.
  5. In Options, enter EMEA, and press Enter. Do the same for APAC and Americas.
  6. In Default value, select EMEA. Most customers of your company are in the EMEA sales region. A new customer gets this default value when no other value is set.
  7. In Applies to, keep All business entities. Every customer needs a sales region, whatever its business entity. With one business entity selected, only the customers of that business entity would have the custom attribute.
  8. Select Required. The revenue report is complete only if every customer has a sales region. Sales region is therefore a required custom attribute. The rule also reaches customers that already exist and have no value. What each customer gets depends on the default value. Your billing team keeps the default value. An existing customer outside EMEA gets EMEA at its next save, unless someone sets its region first. Acme Corp is one of those customers. The next section sets its region.
  9. Select Copy to new contracts, invoices and journal entries. Your billing team does not want to enter the region again on each contract. This setting decides whether a new contract has Sales region at all. Your billing team selects it.
  10. Click Add attribute.
The dashboard confirms the addition. The list shows Sales region with Required and Copies to new contracts under Rules.

Set the sales region of Acme Corp

Acme Corp is an existing customer in the APAC sales region. It has no value for Sales region yet. Your billing team sets that value before the next save of Acme Corp writes EMEA.
  1. Go to Customers, and click Acme Corp. The customer screen opens.
  2. Click Edit. The Edit customer screen opens.
  3. Under Custom attributes, in Sales region, select APAC. Sales region is required. While the field is empty, the dashboard shows Left empty, this saves as EMEA below it. The selection decides what the save writes. Your billing team selects APAC.
  4. Click Save changes.
The dashboard confirms the save. On the customer screen, View next to Custom attributes shows APAC.

Check the copied value on a new contract

Your billing team checks that a new contract receives the value of Sales region from Acme Corp.
  1. Go to Contracts.
  2. Click CREATE CONTRACT. The New contract screen opens.
  3. In Customer, select Acme Corp.
  4. Under Custom attributes, find Sales region. It shows APAC, with This value is from the customer below it. This is a copied value. It comes from Acme Corp. The default value, EMEA, applies only to customers. A contract can hold a different value from its customer. The dashboard shows where the value comes from. Acme Corp keeps APAC in both cases. Your billing team keeps APAC.
  5. Click Cancel, and confirm that you want to discard the contract.
No contract is created.

Follow the copied value over time

Sales region is now required on every customer. Your billing team follows Acme Corp through a series of changes. The copied value on each record depends on when that record is created. After event 4, View next to Custom attributes on Contract_1 no longer shows This value is from the customer. The dashboard does not show the custom attribute values of an invoice, so your billing team cannot check event 5 there. See Behavior: how copied values work.

Change the custom attribute later

Your billing team later changes Sales region itself. Neither change touches a value that a record already holds.

Summary: what your billing team did

Your billing team added Sales region as a required customer attribute that copies to new records. It set the value of Sales region on Acme Corp. It saw that value arrive on a new contract. Later changes on Acme Corp did not reach records that already existed. Those records stayed auditable. See Add a custom attribute.