In our system, every item is assigned a unique identifier (ID) that consists of two parts: a prefix and the ID number itself, formatted as <prefix>-<ID>. The prefix serves as a quick reference to the type of item it represents. For example, you might see case-12345 for a support case or user-67890 for a user profile.
<prefix>-<ID>
case-12345
user-67890
This prefix system is particularly powerful when it comes to organizing and managing data from multiple sources. For instance, if you are migrating from a legacy platform like Zendesk, you could import all your old cases with a distinct prefix, such as ZEN. This prevents any potential ID conflicts with existing cases in your current system and makes it easy to identify the origin of each case at a glance.
ZEN
This article will guide you through the process of creating unique ID prefixes for different company roles. This allows you to assign custom prefixes to cases based on the company associated with them, enhancing organization and workflow automation.
Important: A case will only be assigned a custom company prefix if the company is associated with the case at the moment of its creation (e.g., via email, through the customer portal, or by manual assignment). If a company is linked to a case after the case has already been created, the case ID prefix will not be updated to the company's custom prefix.
First, you need to define the new prefix and link it to the "Case" item type.
Navigate to Configuration → API → ID Mapping.
Click the New Mapping button in the top right corner.
In the "Prefix" field, enter the new prefix you wish to use (e.g., B1, ACME, VIP).
B1
ACME
VIP
From the "Type" dropdown menu, select Case.
Click Save to create your new ID mapping.
Next, you will create a new customer role that utilizes the ID prefix you just created.
Go to Configuration → Customers → Customer Role.
Click on New Role in the top right corner.
Enter a descriptive name for the role (e.g., "Tier 1 Support," "Key Accounts").
From the "Case ID Prefix" dropdown menu, select the new ID prefix you created in the previous step (e.g., B1).
Click Save to create the new role.
Finally, assign the new role to the desired company. All future cases created by this company will now use the new prefix.
Navigate to Configuration → Customers → Companies.
Use the search bar to find the company you want to assign the new role to and click on its name to edit.
In the company's profile, select the Roles tab.
Click to add and select the new role you created (e.g., "Key Accounts").
A Note on Multiple Roles:
While a company can be assigned multiple roles, only the first role assigned will be used for ID prefix mapping. If you require specific prefixes for different companies, it is strongly recommended that you assign only one role with an associated Case ID Prefix to each company to ensure consistent and predictable behavior.
Click Save to apply the role to the company.
Was this article helpfu?
Thank you for voting
You are related to multiple companies. Please select the company you wish to login as.