web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Helpdesks ticketing creation Loops

(0) ShareShare
ReportReport
Posted on by 30

Hi All,

I have a problem with one of our suppliers Helpdesk and I want to know if there is a way to solve this on my organisation's side.

Problem by steps:

1 - The supplier send us an e-mail from their ticketing system

2 - We open a case and send the auto response (with the CRM token to associate the e-mails to our cases)

3 - The supplier send us back our auto response e-mail, stripping the CRM Token from the subject.

4 - Our CRM opens again a case, sends the auto response. Rinse and repeat...

Now, I ideally would like to know if its possible to associate the e-mail sent by the supplier in step 3 to the ticket, but I would be content in just having not more tickets created. Does anyone have a possible solution to this problem?

(Please don't question the supplier implementation or if they can change their system, I'm purely looking for solutions to implement in my D365 environment)

Thank you all!

I have the same question (0)
  • Paul_Owen Profile Picture
    2,027 on at

    So the token is being stripped from the subject line when the supplier replies? Have you tried Smart Matching instead?

    Regards

    Paul

  • Joao_Pacheco Profile Picture
    30 on at

    Thank you for the reply Paul.

    I'm not familiar with smart matching, but I will read the documentation about it.

    Could you just please describe in a few words how this would solve the problem?

    KR,

    Joao

  • Suggested answer
    Wouter Madou Profile Picture
    3,392 on at

    Hi,

    I personally believe that from a customer service perspective, tracking tokens and/or smart matching are not a good solution.

    Why?

    Tracking token is limited in numbers, so it is only a while (if you have a high emailing count) that you start again at counter 1, linking it incorrectly. Or that you send mails between your system and another system that also uses tracking tokens. In that case the fun really starts with incorrectly tracked emails when tracking tokens are the same.

    Smart matching is a correlation process where the system in essence gives a certain id to a combination of the subject ( minus certain words that you put in the parameters through a regex) and the recipients + sender.

    Since a service desk is mostly about the same topics and the same people in the mail (eg: customer x has 'problem with y' send to 'service desk') , the correlation can become incorrect real quickly.

    You could make a combination between the two, but that would not solve your issue that you are describing here.

    I would recommend that you write a plugin to append the case number to the subject of the email and fire the plugin on the creation of an email to check for the case number and set the regarding field accordingly.

    (I am not a developer, so I can't assist you with the code.)

    More info on tracking token and smart matching:

    docs.microsoft.com/.../email-message-filtering-correlation

  • Joao_Pacheco Profile Picture
    30 on at

    Hi Wouter,

    Thanks for the reply.

    Adding the CAS number to the title still wouldn't help, because the supplier strips everything that is added to the subject of the e-mail, so we would be in the same situation of the token getting stripped.

    Still than you for your perspective on both the token and smart matching I now understand better the risks.

    KR,

    Joao

  • Wouter Madou Profile Picture
    3,392 on at

    so for a better understanding, can you give an example?

    Do you mean that the supplier is not 'replying' to your mail but just sending a new mail 'thank you for your mail' and thus you will never be able to match the content?

    In that case, I would add the suppliers address to the exception rules in your auto-creation rules and just let it exist in the system as a non coupled mail. (You could set a queue for non-linked mails and let a user go through it one by one to set the regarding?)

    eg: if from address <> no-reply@supplier.com

    Because if you do not have anything to link the received mail to an existing case it will be impossible, no?

  • Joao_Pacheco Profile Picture
    30 on at

    1 - The supplier send us an e-mail from their ticketing system with subject "Ticket X - incident Y"

    2 - We open a case and send the auto response with subject "CAS-Z-W-U - Ticket X - incident Y CRM:001"

    3 - The supplier send us back our auto response e-mail with the subject "Ticket X - incident Y"

    4 - This e-mail opens another Case

    Is it clearer?

  • Anitha Vivek Profile Picture
    on at

    We have the exact same problem currently.

    In order to break the loop, you could set the 'Do Not Allow email' field on the contact to 'Do not allow'. This will prevent CRM from sending the auto-response(or any emails in fact) to the supplier's ticketing system, thus breaking the loop. Of course, this would mean that no auto-response will be sent to the supplier.

    Would love to hear of a better solution where we can still send the auto-response but not create the email loop.

  • Wouter Madou Profile Picture
    3,392 on at

    The main thing to know is whether it is a reply or a new email.

    If it is a new email you just can't do anything about it other than either not creating a new ticket on the mail address or not sending an autoreply for that address.

    You can easily check this through the api or advanced find through the fields 'conversation index' or 'in reply to'.

    (Conversation index is the base conversation hash (first email) and new digits per each mail. The in reply to is the original id.)

  • Joao_Pacheco Profile Picture
    30 on at

    Hey All,

    Since I couldn't find a fix for the problem I just created a workaround to be able to close this loop tickets without creating more loops, which consists in give a user a role that allows him to disable the auto replies for cases. Not ideal, if anyone else has a better idea please advise

    Thank you all for the replies!

  • Community Member Profile Picture
    on at

    I believe Smart matching would work.

    Smart matching relies completely on the existence of similarity between emails. The subject and recipients (from, to, cc and bcc) list are the two important components that are considered with checking for similarity.

    When an email is sent from CRM, there are two sets of hashes generated for it and stored in the database.

    1. Subject hashes:

    To generate subject hashes, the subject of the email, which may include the CRM token if its usage is enabled in system settings, is first checked for noise words like RE: FW: etc. The noise words are stripped off the subject and then tokenized. All the non empty tokens (words) are then hashed to generate subject hashes.

    1. Recipient hashes:

    To generate the recipient hashes the recipient (from, to, cc, bcc) list is analyzed for unique email addresses. For each unique email address an address hash is generated.

    Next when an incoming email is tracked (arrived) in CRM, the same method is followed to create the subject and recipient hashes.

    To find the correlation between the incoming email and the outgoing email the stored subject and recipient hashes are searched for matching values. Two emails are correlated if they have the same count of subject hashes and at least two matching recipient hashes.

    How can smart matching be configured?

    One size never fits all and so the above described constrain for correlation, which is the default behavior of out of box CRM, can be configured to suite individual needs.

    There are four registry keys that allow you to manipulate the smart matching behavior. These registry keys need to be added under the CRM server registry hive only. I.e. HKLM\Software\Microsoft\MSCRM

    1. HashFilterKeywords
    2. Description: This is a regular expression that is used to cancel out the noise in the subject line. All matching instances of the regular expression present in the subject line are replaced with empty strings before generating the subject hashes.
    3. Default value: ^[\s]*([\w]+\s?:[\s]*)+

    Basically it indicate that we internally (by default) will ignore any word at (multiples of it) at the start of the subject line that has a “:” at the end of it example:

     

    Subject

    Ignored words

    1

    Test

    None

    2

    RE: Test

    RE:

    3

    FW: RE: Test

    FW: RE:

    Note: By default we do not ignore starting phrases in the subject line like “Out of office:” as this does not have the first word with the “:” next to it. For ignoring this phrase you can update the regular expression in the registry as “^[\s]*([\w]+\s?:[\s]*)+|Out of office:”. Do not place the double quote that I have around the string in the example into the registry. The text in the registry should only be the regular expression you want to use for ignoring words from the subject line.

    2) HashMaxCount

    1. Description: This is the max number of hashes that will be generated for any subject or recipient list. I.e. if the subject after noise cancellation contains more than 20 words only the first 20 words are considered.
    2. Default value: 20

    3) HashDeltaSubjectCount

    1. Description: This is the maximum delta allowed between subject hash counts of the emails to be correlated.
    2. Default value: 0

    4) HashMinAddressCount

    1. Description: This is the minimum hash count matches required on the recipients list for the emails to be correlated.
    2. Default value: 2

    Limitations:

    The email hashes are generated when the email are sent out. If you change the HashFilterKeywords or the HashMaxCount via registry key only the new outgoing and incoming emails will be affected. The existing email hashes are not recalculated. Also CRM does not provide any out of box functionality to re-calculate the hashes.

    Also the smart matching currently does not have a time limit on how old the correlated email could be. In CRM 5.0 we would address this along other improvements to smart matching.

    I hope this helps!

    Ruskin | User of Microsoft Teams and MS Dynamics 365

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans