473,513 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the full Outlook EntryID via WebDAV or ADODB

This simple function "almost" get's Outlook EntryID value for at mail item:

---
Octenttohex(rs.Fields("http://schemas.microsoft.com/mapi/proptag/0x0FFF0102")

Function Octenttohex(OctenArry As Variant) As String
ReDim aOUt(Len(OctenArry) - 1)
For i = 1 To Len(OctenArry) '+ 1
If Len(Hex(AscB(MidB(OctenArry, i, 1)))) = 1 Then
aOUt(i - 1) = "0" & Hex(AscB(MidB(OctenArry, i, 1)))
Else
aOUt(i - 1) = Hex(AscB(MidB(OctenArry, i, 1)))
End If
Next
Octenttohex = Join(aOUt, "")
End Function
---

Men - only the first half of the ID.

As you will see from the example below I can come very close to combining
EntryID and FolderID keys, only missing the last 8 characters (57420000):

Outlook EntryID:
00000000D04D936A971B9949B29C546E1BF88923070069265A C77A48AF4EAD3161FA67594F89000000005315000069265AC7 7A48AF4EAD3161FA67594F890000000057420000

The retrieved EntryID from the MAPI property:
00000000D04D936A971B9949B29C546E1BF88923070069265A C77A48AF4EAD3161FA67

These strings are taken from the FolderID on the mail item, and piece by
piece they match a portion of the EntryID:
594F890000000053150000
69265AC77A48AF4EAD3161FA67
594F8900000000

Folder ID på mailen:
00000000D04D936A971B9949B29C546E1BF88923010069265A C77A48AF4EAD3161FA67594F890000000053150000
As you can see, I can pick out different strings from the Folder ID and
match them with pieces in the EntryID string - BUT not the last 8 characters.

How can the exact EntryID be retrieved or calculated???
Apr 24 '06 #1
0 2651

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
11977
by: Peter | last post by:
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed? -- Thanks ------------------- czupet@wsinc.com
9
7348
by: John | last post by:
Hi I am using the following code to search for an email message with id myID; Dim SentFld As Outlook.MAPIFolder Dim Email As Outlook.MailItem Dim I As Integer OutlookApp = New...
9
3064
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
16
4332
by: ML | last post by:
Is there anyway to get around the security prompt from Outlook when using the object in a vb.net winforms app? I want to be able to load the contacts lists from Outlook but each time it access it...
7
3590
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
4
6667
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from...
2
2438
by: Pieter | last post by:
Hi, I'm using a thight integration with Outlook 2003 (with an Exchange server) in my VB.NET (2005) application. Until now I'm using the Outlook Object Model, but it appears to be very slow, and...
1
7941
by: keri | last post by:
Hi everyone, After numerous failed attempts at this I am now trying again to solve this problem. I really would appreciate ANY help as I have been stumped with this for weeks and weeks! I...
0
1603
by: jazeelkm | last post by:
Hi , I am developing a windows application using C#. In that I want to display all the outlook profiles in a listbox and on selecting one, The folder structure should be displayed on a treeview...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7545
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7111
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5692
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5095
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.