Configure accounts and contacts
- UpdatedJan 30, 2025
- 6 minutes to read
- Xanadu
- Customer Service Management
An account is a supported external customer and a contact is a user who is an employee of an account.
Before you begin
Role required: admin
About this task
There are two types of accounts: customer accounts and partner accounts. The Customer and Partner fields on the Account form denote the account type. An account can be a customer account, a partner account, or both.
Procedure
- You can import existing accounts and contacts using guided setup.
- You can create new accounts and contacts using the Customer Service Management application.
Import accounts and contacts with guided setup
Use Customer Service Management guided setup to import existing accounts and contacts.
Before you begin
Role required: admin
About this task
After importing customer account data, you must also set the account code system property.
Procedure
Account codes and account paths
An account code is a unique identifier for an account, while an account path establishes the account hierarchy.
Account codes
An account code is a unique key that identifies an account in a ServiceNow instance. This code is stored in the Account Code field on the Account form.
An account code must be unique. Attempting to insert a new record with previously existing account code in the Account [customer_account] table, the value for the code results in the following error:
java.sql.BatchUpdateException: Duplicate entry for key account_path
Account paths
An account path establishes the hierarchy among different accounts. This path is stored in the Account Path on the Account form.
| Account | Account Code | Account Path |
|---|---|---|
| Boxeo | ~~~~1 | ~~~~1 Boxeo is the parent company. The account path for Boxeo is the same as the account code, which indicates that it’s the first element in the hierarchy. |
| Boxeo USA | ~~~~2 | ~~~~1/~~~~2 Boxeo USA is a child company of Boxeo. The structure of the account path is interpreted as Boxeo/Boxeo USA. |
| Boxeo EMEA | ~~~~3 | ~~~~1/~~~~3 Boxeo EMEA is also a child company of Boxeo and the structure of the account path is interpreted as Boxeo/Boxeo EMEA. |
| Boxeo France | ~~~~5 | ~~~~1/~~~~3/~~~~5 Boxeo France is a child company of Boxeo EMEA. The structure of this account path is interpreted as Boxeo/Boxeo EMEA/Boxeo France. |
Importing account records
Set the account code property
After importing customer account information, update the com.snc.cs_base.last.generated.code.tree.path property with the correct account code value.
Before you begin
Role required: admin
About this task
The com.snc.cs_base.last.generated.code.tree.path system property stores the Account Code value for the most recently created customer account in the Account (customer_account) table.
When you create a new customer account record, the system uses this property to determine a unique account code value for the account. The property is then updated with this latest assigned value so that the next account code value can be set as a unique value for the next account record insert.
The value of the com.snc.cs_base.last.generated.code.tree.path property must match the value of the Account Code field for the last inserted customer account record. When you create customer account records by importing data from other sources or instances, these values can get out of sync. If these values do not match, the system generates an error upon creation of the next new record in the Account table:
java.sql.BatchUpdateException: Duplicate entry for key account_path
Use the steps below to fix this error.
Procedure
- Determine the account code for the last created account.
- Navigate to the System Property [sys_properties] table.
- Set the com.snc.cs_base.last.generated.code.tree.path property to the value determined in step 1.
Create customer accounts
An account is a supported external customer. Use the Customer Service Management application to create account records.
Before you begin
Role required: sn_customerservice_manager or admin
About this task
There are two types of accounts: customer accounts and partner accounts. The Customer and Partner fields on the Account form denote the account type. An account can be a customer account, a partner account, or both.
A partner is a supported external customer that sells to and supports other customers. A partner can report and manage cases on behalf of customers. A partner can also be a customer.
Procedure
Create additional account addresses
An account can have multiple addresses, such as a main address as well as shipping and billing addresses.
Before you begin
Role required: sn_customerservice_manager or admin
About this task
The main address for an account is stored in fields on the Account form. Shipping and billing addresses for an account are created and stored in the Addresses related list. An account can have multiple shipping and billing addresses.
Procedure
Create customer contacts
A contact is a user who is an employee of an account. Use the Customer Service Management application to create contact records.
Before you begin
Role required: sn_customerservice_manager or admin
About this task
Procedure