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 :
Microsoft Dynamics CRM (Archived)

Set Email's conversationIndex via Plugin

(0) ShareShare
ReportReport
Posted on by 10

Hello everyone!

I have an interesting challenge here:

Imagine we are creating email messages via plugin. Sometimes we create need to add some email to conversation - like answer or some old email.

Currently we just add trackingToken and regardingActivityId from a previous email and it looks good with queries.

BUT!

While checking the CRM UI we noticed that emails are not getting in 'conversation' group:

screenshot_2D00_2.png

On the left you can see messages created via plugin (they all have the same trackingToken).

On the right - via the "Reply" button. Notice the grouping.

I noticed that email messages that are created via the UI have conversationIndex hash (https://docs.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-ascon/96fa9969-d688-46c3-a7a4-cf7d99c7bab7).

Using BaseConversationIndexHash doesn't look to be enough (I found no documentation about it).

My question is:

How is it possible to group messages in conversations via plugin?

*This post is locked for comments

I have the same question (0)
  • JVE Profile Picture
    213 on at

    Did you ever find out the answer yourself?

  • Verified answer
    JVE Profile Picture
    213 on at

    > Using BaseConversationIndexHash doesn't look to be enough (I found no documentation about it).

    I'v just tested and setting baseconversationindexhash to same values DID bring those emails under the same conversation!

    P.S. The way CRM generates this is by taking first 44 characters of conversationindex field and simply calling GetHashCode() on it.

  • GregE Profile Picture
    10 on at

    Yes it did but since there's no documentation about it I think it should be considered nothing more than a hack.

    But it's working flawlessly for more than a year now =D

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans