We're hope the previous post on Zoho Desk integration was useful to you. In this post we will cover the rest of the tasks (task 5,6, and 7) that can be automated once you integrate your Zoho Creator application with Zoho Desk.
As mentioned in the previous post, once you've established a relationship between Zoho Creator and Zoho Desk, you can perform the following task:
1. Create new records in Zoho Desk
2. Fetch data from Zoho Desk
3. Fetch specific records using the record ID from Zoho Desk
4. Update specific records in Zoho Desk, using Zoho Creator
5. Search records by specifying criteria in Zoho Desk, using Zoho Creator
6. Fetch related records in Zoho Desk, using Zoho Creator
7. Create related records in Zoho Desk, using Zoho Creator
5. Search records by specifying criteria in Zoho Desk, using Zoho Creator
You can search records in Zoho Desk by specifying the criteria in Zoho Creator. This task can achieved by making use of the zoho.desk.searchRecords() task.
The zoho.desk.getRelatedRecords task allows you to fetch the following information:
Tickets based on a contact
Tickets based on an account
Tasks based on a ticket
timeEntry based on a ticket
timeEntry based on a task
timeEntry based on an agent
Comments based on a ticket
Thread based on a ticket
Use case
Let's say you want to fetch the tickets of a particular contact and want to autopopulate the Ticket Number dropdown field.
Let's assume the Ticket Details form has the following fields:
Contact ID (single line field type)
Ticket Number (drop down field type)
Example
contact_id=input.contactid.tolong();
mp = Map();
y=zoho.desk.getRelatedRecords(<orgID>,"tickets","contacts",contact_id,<range>,<range>,mp,"<connection name>");//fetching ticket number and sorting it, list is created
7. Create related records in Zoho Desk, using Zoho Creator
You can create a related record in a sub-module belonging to a record in a parent module in Zoho Desk. This can be achieved by using the Deluge Task zoho.desk.createRelatedRecord().
If you see any duplicate tickets created in Zoho Desk and you wanted to merge those tickets into one, the zoho.desk.ticket.merge() Deluge task in Creator do the job for you.
If you see any ticket assigned to the wrong department in Desk and wanted to reassign it to the correct department, you can make use of the zoho.desk.ticket.move() Deluge task.
Example
x = zoho.desk.ticket.move(<org iD>,<ticket iD>,<department ID>,<connection_name>);
// department ID is the ID of the department to which this ticket will be moved.
The ticketID and department ID can be fetched using fetch task.
Split a ticket
A ticket can also be split into multiple tickets based on the thread, by using the thread ID of that particular ticket.To get the thread ID of the ticket, use the getrelatedrecords task.
Syntax
mp = Map();
g = zoho.desk.getRelatedRecords(<orgID>,"threads","tickets",<ticketID>,<map variable>,"<connection name>");
//info g; (thread ID can be fetched from this response)
h = zoho.desk.ticket.split(<org ID>,<ticket iD>,<thread ID>,"<connection name>");
We hope this post on Zoho Desk integrations was useful to you. If you have any questions, feel free to add them as comments below. If you'd like us to cover any specific integration, please add them here in comments and we'll take it up.