ConversationIndex Outlook 2000

Add-in Express™ Support Service
That's what is more important than anything else

ConversationIndex Outlook 2000
 
Doug Cox




Posts: 103
Joined: 2006-10-05
I'm trying to use Add-In Express to save emails to a SQL database and I wanted to use the ConversationIndex property to track email threads.

I thought that the ConversationIndex returned a hex string but I get binary data. Do you know of a work around for this?


THANKS!
-DC
Posted 05 Oct, 2006 11:49:29 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Doug.

I am afraid I don't quite understand the issue. Do you have any difficulties translating the data to another format?
Posted 05 Oct, 2006 16:10:30 Top
Doug Cox




Posts: 103
Joined: 2006-10-05
Sergey,
Thanks for the quick reply.

Yes I do not understand how to translate the binary data to hex. Could you provide a sample?

Thanks,
Doug
Posted 05 Oct, 2006 17:39:53 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Doug,

The ConversationIndex property returns WideString like '01C6E90276DC4B431F15E9C1454783665F9F8DD4DD0D'. Please check your code or send it to me to check.

Posted 06 Oct, 2006 07:19:59 Top
Doug Cox




Posts: 103
Joined: 2006-10-05
Dmitry,

Here's the code:
----------------------------------------------------------------------
Imports System
Imports Outlook = Interop.Outlook
'Add-in Express Outlook Items Events Class
Public Class OutlookItemsEventsSentItems
Inherits AddinExpress.MSO.ADXOutlookItemsEvents

Public Sub New(ByVal ADXModule As AddinExpress.MSO.ADXAddinModule)
MyBase.New(ADXModule)

End Sub

Public Overrides Sub ProcessItemAdd(ByVal Item As Object)
Dim NewEmail As Outlook.MailItem = Item
MsgBox(NewEmail.ConversationIndex.ToString)
End Sub

Public Overrides Sub ProcessItemChange(ByVal Item As Object)
'TODO: Add some code
End Sub

Public Overrides Sub ProcessItemRemove()
'TODO: Add some code
End Sub

End Class

----------------------------------------------------------------------

Thanks,
Doug
Posted 06 Oct, 2006 10:58:06 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Doug.

The fact is that the ConversationIndex property returns the value of the System.String type. So, there is no need to use the ToString method to convert it to a text.
Also, it is not possible to convert the data to hex because such a long data type doesn't exist.

P.S. Please use the '.NET Products Forum' to ask me questions regarding the ADX .NET product.
Posted 09 Oct, 2006 10:04:33 Top