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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans