This is a monthly series where we pick some common use cases that have been either discussed or most asked about in our community and explain how they can be achieved using one of the automation capabilities in Zoho Desk.
Email is one of the most commonly used support channels and with Desk's easy setup you can easily convert your customer conversation into tickets. All you need to do is to forward the emails received at your support mailbox to Zoho Desk and every customer conversation is converted into tickets with a unique ticket ID.
The subject of the email is pulled and displayed as a tickets with a ticket ID in Desk. If you want to go a step ahead and pull the email content into the ticket description, then automations can come in handy. Using a simple custom script and a workflow rule you can create an automation to automatically update the email content in to the description field of the ticket in Desk. This helps you have all the context you need to resolve a ticket at one single place and avoid going back and forth between your inbox and help desk platform.
To create the workflow rule, perform the following steps:
Go to Setup, and under Automation, click Workflows.
Click "Create Rule" from top right corner.
In the Basic Information section, perform the following steps:
In the Module drop-down menu, select Tickets.
Enter a name and description for the rule.
If you want to activate the rule right away, select the Active checkbox. Else, you can just create the rule now and activate it later on the Rules page.
Click Next.
In the Execute on section, perform the following steps:
Select the Create checkbox to execute this rule every time a new ticket is created.
Click Next.
In the Criteria section, add "Channel Is Email" and click "Next".
In the Actions section, perform the following steps:
Click the + icon under "Action" and select "New" next to CustomFunctions
Enter a name and description for the custom function.
In the script window, input the Custom Function you find below:
The system should copy the first 100 words of an email of the ticket and copy it on Description and if the text is beyond 100 words, then the system should replace additional words with three dots ...
We need to tweak the custom function script for your requirement, Rafay. Hit us up at support@zohodesk.com, we shall share the modified custom function.
could you please share the above tweaked script to me. I need the same solution with the first 100 words. The original script at the top of this thread is not working at all for me. it does not update the ticket description. your help would be much appreciated.
I am trying to have the Content of the email submitted for the ticket updated into the Description field. I am following the instructions above but I am getting an error = "Variable 'ticketId' is not defined Line Number : 2" this is an older thread so maybe some of the scripting changed?
Given the nature of this request, we'd suggest reaching out to us at support@zohodesk.com. Hope this guides you to the appropriate channel. Thank you, @cklinker.
Yes, you can indeed link the Custom Function created in Macro Automation to run across a series of tickets within a Custom View—just be mindful not to update too many tickets at once, as it might hit the API threshold.
Ist it possible to access the receivedAt/sentTo email address of an ticket in a similar way? What would the JSON parameter be instead of "content" in: getJSON("content")?
Could you clarify if you’re referring to the direct support email address from which the email was received or the forwarding address to which it was sent?
Shoot us an email to support@zohodesk.com with the complete use case—specifically where the email address value needs to be filled. We’ll assist you in tweaking this function.
Apologies for the confusion! We’ve understood the use case shared in the ticket and will forward your request to our development team for further action. I’ll keep you updated on the progress within the same ticket.
Thanks for your understanding,
Shivani | Zoho Desk
Reply to Chinmayee MishraA
/* */
12
Insert
Plain text
Rich Text
Add Comment
(Up to 20 MB )
Stats
3 followers
28 replies
5079 views
Follow
Subscribe to receive notifications from this topic.
Regards,
Ajith | Zoho Desk