A lookup relationship field is a custom field that you can use to establish relationships between tickets, users, and organizations.
You can use the Zendesk API to retrieve lookup relationship data. For example, you can request a list of all tickets related to a specific support manager. To learn more, see Retrieving lookup relationship data with the API in the developer docs.
Understanding lookup relationship fields
A lookup relationship field is a type of custom field type that you can add to users, organizations, or tickets in Zendesk. See About custom field types. After adding a lookup relationship field, team members can use it to establish relationships with other users, organizations, or tickets.
You can add a lookup relationship field to ticket forms, user profiles, and organization pages. When you do, agents can use this field to look up and select from a list of users, organizations, or tickets in your Zendesk account.
You can use lookup fields in creative ways that serve your specific business needs. For example, you could create a lookup field called Manager, tie that lookup field to your account's users, and add the field to your ticket form. Your agents could then use this field on a ticket to select a manager from a list of your organization's users.
Topics covered in this section:
Understanding the custom field
A lookup relationship field is a custom field that lets you look up and select from a list of users, organizations, or tickets in your Zendesk account. The following example shows a lookup relationship field on a user profile page. A team member typed a dash (-) in the field to list a filtered set of organizations in the account:
The list of options in a lookup relationship field is auto-populated as you type into the field. You don't have to define the options yourself as you do with a dropdown custom field, though you can filter them when you define the field (see Filtering the field's options).
After selecting an option, you can view the record details by clicking the field name:
You can add lookup relationship fields to the following pages in the Zendesk interface:
- Tickets
- The user profile page
- The organization page
These pages represent the possible source object of a relationship. For example, a user displayed in the user profile page can be the source object of a relationship with another user, organization, or ticket. The lookup relationship field lets you select the other object — also known as the related object — in the relationship.
You can make a lookup relationship field conditional so that it only appears to agents under certain circumstances. See Creating conditional ticket fields.
Understanding the relationships
A lookup relationship can be expressed as follows:
source object → related object
The source object is the Zendesk object that contains the lookup relationship field (among other fields). It can be a user, organization, or ticket. The related object is the object specified by the lookup relationship field. It can also be a user, organization, or ticket. Lookup relationships with Zendesk custom objects are not supported.
A lookup relationship can be any combination of a user, organization, or ticket with another user, organization, or ticket.
If you create a relationship between a source ticket and a related user, the ticket record will have a lookup relationship field identifying the user. However, the corresponding user record will not have a field identifying the ticket. Instead of a field, the user record will have a Related tab listing the ticket along with all the other source objects it’s related to (see Viewing lookup relationships for users and organizations).
Each source object can be related to only one related object. However, many source objects can be related to one related object. For example, after adding an organization lookup relationship field to users, you could then establish many relationships between users and one organization. Example:
- User 1 - Org A
- User 2 - Org A
- User 3 - Org A
- ...
You can view the relationships in ticket forms, user profiles, and organization pages.
You can also use the Zendesk API to list the users, organizations, or tickets related to a specific related object. For example, you can request a list of all tickets related to a specific support manager. To learn more, see Retrieving lookup relationship data with the API in the developer docs.
Searching records by lookup relationship field values is not supported.
Examples
There are many ways you can use lookup relationship fields to build out complex relationship ecosystems within Zendesk Support. The following are some examples to help you start thinking about ways you can use these custom fields:
-
You're an admin for a trucking company and you want to associate shippers, drivers, and recipients with tickets. You add three filtered lookup relationship fields to tickets: a user field named Drivers, an organization field named Shippers, and another organization field named Recipients.
-
Your company is in the business-to-business (B2B) space and interacts with many other companies. You want to track the relationships these companies have with each other. You decide to use organization lookup relationship fields to create and track these relationships. For example, you might have a field named Partner, a second named Subsidiary, and a third named Competitor.
-
In another business-to-business scenario, each of your account managers works with a key stakeholder at each of your customer companies. You create a user lookup relationship field named Account Manager to establish relationships between the stakeholders and your account managers.
-
You want to designate emergency contacts for members on your team in case a member is not available. You decide to use a user lookup field named Emergency Contact to create these user-to-user relationships. In a more complex use case, you could add additional user fields -- Backup 1, Backup 2 – to establish a priority of backups for each person.
Adding lookup relationship fields
You can add up to ten active or inactive lookup relationship fields to users, organizations, and tickets. The field is displayed on pages in the Zendesk interface.
You can also create lookup relationship fields with the Zendesk API. See Lookup Relationships in the API reference docs.
If you delete a lookup relationship field, the data in the field isn't preserved. To preserve the data, deactivate the field rather than deleting it.
To create a lookup relationship field
- Start by adding a custom field to your users, organizations, or tickets and
select Lookup relationship as the custom field type. For more
information, see:
- Adding custom fields to your tickets
- Adding custom fields to users
- Adding custom fields to organizations
Example:
- Set the Display name, Field key, and Description as described in the articles linked from step 1.
- Select a related object to list in the lookup relationship field.
This can be a Ticket, User, or Organization. For example, if you select User as the related object, the lookup relationship field will display a list of Zendesk users.
- Click Add filter to define one or more filters to reduce the number
of options that the field can display.
You can filter objects by any number of tags or custom fields. For more information, see Filtering the field's options.
- Click Save.
Filtering the field's options
Your account could have thousands or even millions of ticket, user, and organization records. In most cases, you'll want a defined subset of records for the options in your lookup relationship fields. For example, you might want to list only users who are account managers.
By default, all lookup relationship fields let you filter the records of the related object by tag. For example, to list only users who are account managers, you could add an "account_manager" tag to the user profiles of your account managers and then define the following filter condition for the lookup relationship field:
Tags | Contain at least one of the following |
account_manager
For ticket records, the following additional default filters are available: Status, Type, Priority, Assignee, Requester, Form, Organization, and Channel. See Building trigger condition statements. For user records, an additional Role filter is available.
Lookup relationship fields also support filtering by other custom fields added to the related object. For example, if you add a Security Clearance custom checkbox field to the user profile, the Security Clearance field will appear as a filter option when you add the lookup relationship field. You could then define the following filter condition for the field:
Security Clearance | Is | Checked
You can modify the filters at any time. This won't affect the values previously selected with the lookup relationship field.
To learn more, see About custom fields.
Viewing lookup relationships for users and organizations
Each Zendesk Support profile for a team member, end user, or organization includes a Related tab that lists all related source objects. The information is grouped by the type of source object (Tickets, Organizations, or Users) and the specific lookup field.
In the following example of a team member profile, tickets have a lookup relationship field called Driver. If Annie Porter is selected in the Driver field, that ticket appears under the Related tab on her team member profile. It’s grouped by the type of source object, Tickets, and the name of the lookup field, Driver.
The Related tab doesn’t appear on user profiles in your help center.
Using lookup relationship fields in triggers and views
You can use lookup relationship fields to help define triggers and views.
When adding a condition to a trigger or view, any lookup relationship fields also appear in the list of options. In the following example, the first condition of a trigger is a user lookup relationship field named Support Manager. The trigger will only fire for tickets associated with the support manager named Jennifer Hanson.
You can also use lookup relationship fields in the actions of your triggers. In the following example, the action sets the value of the organization lookup relationship field named Company Organization to Northwest Region when the trigger fires.
54 Comments
Hi Ashwin Raju
We have parent/child account models in our Salesforce and have a Hierarchy field type on the child accounts that provide an easy link back to the parent. Both accounts are synced to Zendesk, but it would be amazing to be able to also model that relationship. We have the SF Account IDs mapped to the Organization external ID attribute, so it would be great if we could use the external ID being used in that field type to also create the same relationships as part of the sync.
Understood on the use case Ashwin, that does make sense. However this does limit the use of Zendesk as an internal ticketing platform. It seems that Zendesk is more focused on the B2C customer experience use case which is fine...I just think that those of us trying to use it as an ITSM tool will find it lacking in features and eventually need to make a move to a platform more suitable.
Hi Ashwin Raju
Absolutely loving this feature so far however I believe the "level-up" function for this is 2 part:
1) Allow Relationship Fields to be linked to custom objects.
2) Allow Realtionship Fields to be displayed on Guide.
Our use case is simple - we manage software licenses for our partners. We would love to build custom objects for these software licenses and link them to their organisation. When it is time for them to submit a request regarding this license, their list should be available to them in guide to select from so that we know which license the ticket is referring to. Would be amazing!
We are trying to update a Relationship field on our users profiles via the API but it doesn't seem to work. Is it a known limitation ?
Below is a working example:
I tested:
I am wondering when will you guys allow using the Lookup Relationship field to be visible on Explore. Further, I tried adding the Lookup Relationships field on the Help Center's submit a request form and that is also not possible. Do you guys have something on your roadmap for this?
Hi Ashwin Raju
Have there been any advancements towards having these fields reportable in Explore? I just had a use case where these fields would have been perfect, but one of the requirements was that we needed to be able to report on the values selected, so we had to scrub the idea.
If data can be entered into the system, it really needs to be visible in Explore.
Hi Dan R. - The good news is that we very close to completing the build for this feature. We should be releasing this feature sooner than you think.Let me ask my counterpart on the Explore side to share better sense of the timelines (CC: Renata Nikulina)
That's great to hear, thanks for replying to me Ashwin. Eager to hear more from Renata :)
Hi Renata Nikulina
I'm really excited to hear more about the timelines for reporting on lookup relationship fields from Ashwin Raju's last reply. Is there anything you can share?
Thanks!
Hi All!! I bring great news for you all.. A few common requests that I have heard are:
1) Why can't I point Lookup fields to custom objects? For eg: I want to create a Lookup field in a ticket that points to an Order.
2) Why can't I create enhanced Trigger condition using my lookup fields? For example,
3) Why can't I create notifications actions using my lookup fields? For example
We are releasing an Early access program next week which includes all these functionalities AND MORE!!.. Be sure to try it out.
Hi Dan R. - I guess we missed updating it here... But Explore reporting on Custom objects is live now !!!! Here is the announcement - https://support.zendesk.com/hc/en-us/articles/5569922925722-Announcing-lookup-relationship-fields-in-Explore
Ashwin Raju, are there any plans to allow view conditions to specify (current user) on User lookup relations for tickets?
We have a use case where we need to assign a user other than the one handling communication to a ticket who will remain the Assignee and would like to create a view where they can see the open tickets they have assigned.
hi Archie Menzies - In your use case, you want a way to put a filter which says.. Lookup field value should not be Assignee value.. Am I right in saying that ?
This is an interesting use case, which I need to further think about..
However, we are in early stages of considering Dynamic filtering for Lookup fields..Use cases like
1) Show me only the Orders where Order->Customer = Requester (Order is a custom object)
2) Show me only the Employees where Employees->Manager = Requester
3) Show me Assets where Asset-> Assigned to = Logged in User (Asset is a custom object)
These might be especially helpful when it comes to bringing Lookup fields to Guide
Ashwin Raju, I'm actually looking for a way to configure a ticket view to show the agent tickets where they are selected in the user look up field.
In the same way we can create a view where the Assignee = (current user), I would like to be able to create a view where {My custom lookup field} = (current user).
Is there a reason why Light Agent is not one of the Role conditions for these fields?
You can set to Agent, Admin, or End User. If set to Agent, Light Agents do not appear in the list.
I second Archie Menzies suggestion. I'd like to be able to have a lookup relationship to for an account owner on an Org within Support and create a view showing tickets opened for that org.
The same function as suggested by Archie Menzies would be great - being able to use (current user) as a property for Triggers / Views would really help make this feature more powerful.
Good work
Hi Ashwin Raju
You previously said you should have some updates in H1 2023 regarding end user access to lookup fields - are these available yet?
Hi Jacqui. Thank you for your patience.. We have initiated conversations on this feature. My team is currently heads down on releasing the new custom objects this quarter. And right after that release, we look to start our work on making Lookup fields available in Guide. Will keep you posted... Would love to hear your use case on this, so that I can capture it..
I assume this cannot be done at least yet? Have an organization profile field with lookup for users of that organization?
Use case would be able select one user of organization as "primary contact". This contact might be useful for any critical issues and some acceptance requests for paid support etc.
You can always create a lookup field in the Organization pointing to the primary contact(user) of that Organization.
Ashwin, sounds interesting, can clarify a bit.
I was not able to add a lookup field in organization, that would only include users from that organization. When you have tens of thousands of users and hundreds of organizations with possible primary contacts, filtering to lookup to specific organization's users would be required.
Please sign in to leave a comment.