Getting a record count in Zoho Desk is straightforward once your connection is authorised — simply ask the assistant which module you want counted, and it returns the total (with optional filtering).
Why this matters
Knowing how many tickets, contacts, tasks, or other records exist in a given Zoho Desk module helps support managers track workload, audit data quality, and report on SLA compliance. You may need a raw total for a module, or a filtered count — for example, all open tickets assigned to a specific department. Without a reliable count mechanism, teams often resort to manual exports, which are slow and error-prone.
Step-by-step
Step 1. Confirm your Zoho Desk connection is active.
Before any count can be retrieved, the system must hold a valid OAuth token for your Desk organisation. The backend uses a ZohoDeskClient initialised with your API domain, access token, and org ID. If the org ID is not yet stored, it is auto-discovered from the first API call to list your organisations. [8]
Step 2. Ensure the correct OAuth scopes are granted.
Your Zoho Desk OAuth authorisation must include at minimum Desk.tickets.READ, Desk.contacts.READ, Desk.tasks.READ, and Desk.basic.READ — depending on which module you want to count. The full recommended scope set also covers events, articles, settings, and search. [3]
Step 3. Ask for the record count by module.
In the Beam Help assistant chat, type a natural-language request such as *"How many tickets are in Zoho Desk?"* or *"Count my Desk contacts."* The assistant detects this as a count query and automatically routes it to the getrecordcount tool. [2]
Step 4. Specify the module if prompted.
If your message does not clearly name a module, the assistant will ask: *"Which module should I count (e.g., Leads, Contacts, Deals)?"* Reply with the module name — for example, *"Tickets"* — and the assistant will proceed. [1]
Step 5. Add a filter (optional).
You can narrow the count by including criteria in your request, such as *"How many open tickets are assigned to the Billing department?"* When a criteria parameter is detected alongside the module, the assistant passes it to the API call and returns a filtered total. [1]
Step 6. Read the result.
Once the API responds, the assistant displays one of two messages:
- *"You have N records in the [Module] module."* — for an unfiltered count. [7]
- *"You have N records in the [Module] module matching that filter."* — when criteria were applied. [7]
If the count cannot be extracted from the API response, you will see *"I couldn't determine the record count for [Module]."* — in which case, see the pitfalls section below. [5]
Step 7. Follow the deep link (if provided).
After a successful count, the assistant may generate a direct link to your Zoho Desk portal. Desk URLs follow the pattern https://desk.zoho.{dc}/agent/{portal}/tickets/details/{TicketId}, scoped to your data centre and portal name. [6]
---
Common pitfalls
- Connection not authorised. If the Zoho Desk API instance cannot be initialised, you will receive an error: *"Zoho is not connected for this app. Please reconnect."* Re-authenticate via the connection settings to resolve this. [4]
- Missing or wrong org ID. The
ZohoDeskClientrequires a Desk org ID. If it is absent, the system attempts auto-discovery from your organisations list. If that also fails (e.g., due to insufficientDesk.basic.READscope), the count call will not reach Zoho Desk. Verify thatDesk.basic.READis included in your granted scopes. [^8, ^3]
- Zoho rejects the request. If the API returns an error object, the assistant responds with *"Zoho rejected the request. What should I adjust so I can retry?"* This typically means a scope is missing, the module name is invalid, or the criteria syntax is malformed. [5]
- Module name not recognised. The count flow requires a clearly identified module. Vague requests without a module name will always trigger a clarifying question before any API call is made. [1]
---
What to check
- OAuth scopes: Confirm that all required
Desk.*scopes — especiallyDesk.tickets.READandDesk.basic.READ— are present in your authorised connection. [3] - Org ID persistence: Verify that your Desk org ID is stored in the connection record; if it is blank, the system will attempt auto-discovery on every request, adding latency. [8]
- Response format: If you receive an "I couldn't determine the record count" message, check that the API is returning a parseable count field rather than an error payload. [7]
---
*Beam Help is independent expert support for Zoho — we are not official Zoho support. For billing or account issues, contact Zoho directly.*