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 attributeSales 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 addsSales 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.
- Go to Settings > Custom Attributes. The Customers screen shows the customer attributes.
- Click Add customer attribute. The Add customer attribute screen opens.
-
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. -
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.
-
In Options, enter
EMEA, and press Enter. Do the same forAPACandAmericas. -
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. - 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.
-
Select Required.
The revenue report is complete only if every customer has a sales region.
Sales regionis 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 getsEMEAat its next save, unless someone sets its region first. Acme Corp is one of those customers. The next section sets its region. -
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 regionat all.Your billing team selects it. - Click Add attribute.
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 forSales region yet. Your billing team sets that value before the next save of Acme Corp writes EMEA.
- Go to Customers, and click Acme Corp. The customer screen opens.
- Click Edit. The Edit customer screen opens.
-
Under Custom attributes, in Sales region, select
APAC.Sales regionis required. While the field is empty, the dashboard shows Left empty, this saves asEMEAbelow it. The selection decides what the save writes.Your billing team selectsAPAC. - Click Save changes.
APAC.
Check the copied value on a new contract
Your billing team checks that a new contract receives the value ofSales region from Acme Corp.
- Go to Contracts.
- Click CREATE CONTRACT. The New contract screen opens.
- In Customer, select Acme Corp.
-
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 keepsAPACin both cases. Your billing team keepsAPAC. - Click Cancel, and confirm that you want to discard the contract.
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 changesSales region itself. Neither change touches a value that a record already holds.
Summary: what your billing team did
Your billing team addedSales 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.