An email message threads into an existing ticket as a comment instead of generating a new ticket. Why do emails thread to the wrong ticket?
When a new email is received, Zendesk scans the message-ID on the email. If that message-ID matches an existing ticket then the email is added as a comment on the existing ticket. Zendesk does this regardless of the support address the email is received at.
The threading logic from an email is based on RFC standards. All of the lines for
References should contain unique values. If one of these lines uses a static message-ID or email address, Zendesk will thread incoming emails into the same ticket.
Make sure that you are not removing all of the text from another email conversation and resending the email or just changing the
Reply-To address. To create separate tickets, copy the email content into a new email and manually send it to your support address.
Checking your original email
To determine what is causing your tickets to automatically thread multiple emails into one single ticket, follow the steps below to examine the original email records for matching message-IDs.
- Open the original message that began the ticket. A window or a new browser tab will show you the original data from the email that was sent to Zendesk.
- Repeat this for the next threaded message that comes from the same sender that should be a separate ticket.
- Select Source for both of the messages under the subject line. This will display the header data.
Analyzing the header information
The data in the Source tab covers a large amount of data that is hidden by email programs. The critical information is listed as one or more of the following items:
If you find Message-ID within the headers of the email, this is the first email written as an original message in this format. Copy the string found next to message-ID, and check the References entries for matching messages. Use the Find function (Control-F or Command-F) by pasting the string.
If you find In-Reply-To or References, this shows the message is a reply to a pre-existing message in the requester's email account. Use the Find function to check for more Reference strings to check for matches. This will confirm that the requester replied to saved messages in their inbox instead of submitting a new separate request. You are likely to see this if the ticket in your system is listed as a follow-up ticket.
For more information, see the article: Getting started with email - Part 1: How the email channel works.
We have an instance where we have an external support provider that sends us ticket notifications [via ConnectWise, I believe] which always come with the subject:
Each time their ticketing system generates a response [whether to us or another third party or to their own office] it creates a new ticket.
How can I have a trigger based on subject to check if the Ticket#XXXXX exists and thread into that if so?
That's a good question. Right now, business rules in Zendesk (triggers and automations) do not have the function to thread emails to existing tickets. Also, while triggers are able to check the subjects of tickets, it would only be for checking it for a specific word or thread. There is no way for a trigger to check the subject and cross-reference it with all the existing tickets.
I would suggest posting this as a feature request though, as I do see how this can be useful. Feel free to post this here: https://support.zendesk.com/hc/en-us/community/topics/200132066--Feedback-on-Support
Marco M. | Zendesk Support
How can we check the message ID, when the issue is replies from email to a chat conversation, where we cannot check any message ID on the original message because it originated from Zendesk?
To check the message ID of an email, you can open a ticket created by inbound email and you have the option to view and download the original email.
Please see Viewing the HTML and original source for incoming tickets for more information.
Trust this helps.
Those instructions do not work for the situation I have laid out, thus my question.
Hello CJ Johnson!
Thanks for the follow-up! We're sorry to hear the initial instructions were not ideal for your use case.
I'd like to refer you to this other article regarding Customers not receiving emails. The events should show a Trigger notification with a number that Advocates can use to track down logs internally. Although we wouldn't be able to check logs every time, if you're having specific issues, feel free to contact us via WebWidget Messaging and we'll be happy to help further.
In short, "Message-IDs" are only available for inbound email messages, not outbound, but if you replied to an actual email, the Message-ID should remain the same for the entire thread, and that's how Zendesk links all messages in the same ticket. Hope that makes sense! :)
Hi Anna Lainfiesta
We have external system sends emails to Zendesk and every time in generates new ticket in Zendesk despite the Subject, Sender and Receivers are the same?
Can you recommend the way to configure in a way that Original ticket gets updated instead of generating new ones every time.
As explained in this article, if
Referenceslines are different it will be threaded on a different ticket or create a new one. It's possible that your external system is changing these values. Due to this, the only recommendation we can provide it to work with the system admin to make sure that no changes will be made to the emails they will send to Zendesk.
Hi Zendesk Team,
I have one ticket (#abcd) in particular where Requesters had history of sending new ticket to email@example.com, which we have already advised requester to send to firstname.lastname@example.org instead.
Requesters Forwarded the email (where he sent to email@example.com) to the correct firstname.lastname@example.org without the wrong address, but the new email still threaded to #ticketabcd.
Please advise if this should be the correct behavior?
It looks like you have a ticket open with our Customer Care team regarding this issue. They will follow up with you as soon as they can to troubleshoot further so stay tuned.
Is there any way to have an email reply processed by Zendesk as a comment on an existing ticket, without the original message-id in the In-Reply-To header?
We tried adding the ticket email address to the "References" header, but that just resulted in the message being flagged with the error "Permission denied due to unauthenticated email update".
The message-id is required for the email operation on an existing ticket. As you can see addressed in the article: When a new email is received, Zendesk scans the message-ID on the email. If that message-ID matches an existing ticket then the email is added as a comment on the existing ticket. Zendesk does this regardless of the support address the email is received at.
I hope this answers your question! Thanks!
It also mentions using the References header. If the References header has a value such as email@example.com, does Zendesk honour that as a link to the original ticket of 1234 for comment? Or does it only use the original message-id and only in the In-Reply-To header?
Quoting from the article above, "If one of these lines uses a static message-ID or email address", where "these" refers to the In-Reply-To and References headers.
If you'll use the firstname.lastname@example.org it will still be threaded on the same ticket. However, it will have a banner pertaining to the user as not part of the conversation. There's also a possibility that the reply coming from that email address will be suspended like what happened on my test. It will only be visible on the ticket once you have recovered it.
The one in the red box was a user not part of the ticket that used email@example.com. Meanwhile, the requester (green box) also used firstname.lastname@example.org and it was threaded on the same ticket.
This is not accurate. I have messages with unique message-IDs threading together.
CJ - would you mind sharing some notes on the SMTP headers used to accomplish this?
Longboard I literally just downloaded the original email source from multiple emails in a thread that I knew should never had threaded, and lo and behold, the message ID in each is very different, yet they are threading into a single ticket. They also all have unique subject lines.
I believe the original answer is confusing/wrong - each email will have a unique 'Message-ID' the key to any reply emails being linked to an existing ticket is that the new email will have an 'In-Reply-To' id that is the same as the 'Message-ID' of an email in an existing ticket.
"When a new email is received, Zendesk scans the message-ID on the email. If that message-ID matches an existing ticket then the email is added as a comment on the existing ticket."
would be more accurate if it said
"When a new email is received, Zendesk scans for any 'In-Reply-To' id on the email. If the 'In-Reply-To' id matches an existing tickets Message-ID then the email is added as a comment on the existing ticket."
Please sign in to leave a comment.