Retrieving sent items

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

specs: Outlook2003 WinXP

In my database I want to store the data I sent via Outlook. My plan is to be
able to retract certain appointments if necassary. I thought I use the
EntryID for this and add this to my database. The EntryID however is only
there when the appointment is delivered. So not a steady, reliable situation.
What kind of 'stamp' can I add to an appointment, mail or task so I can check
my Sent Items to maybe retract an appointment via my Access database.

e.g. Send an appointment via Access - Outlook. Record is saved in database.
Now I want to retract the appointment via the database. Record has some sort
of [stamp] or unique identifier which I can check the sent items folder with
to retract the appointment from the database with.

Hope this makes any sense otherwise let me know and i'll try to rephrase it.

Thanks for any help in advance..
 
If this is for Outlook 2003 or later you can use GlobalObjectID but that and
EntryID are only valid after an item is sent.
 
Hi ken,

My point exactly. It's for outlook 2003. I tried reading the EntryID but I
could obly get that when the item was actually sent. Strange thing is that
when I run the code
the message is immediatly set in the sent items folder but it doesn't have
an EntryID yet.

I tried sending a mail to myself. The mail was immediately in sent items. I
went through sent items via VBA and it did recognize the mail as being there
but it didn't have an EntryID until I received the mail. Strange, so Outlook
must do some updating by itself when the mail is actually delivered because
it looks like that's the moment when the EntryID is designated to the sent
item.

What would your advise be in this case, create an own unique key. If so how
can I designated that to let's say a mail?

Thanks for the info so far...
--
Maurice Ausum


Ken Slovak - said:
If this is for Outlook 2003 or later you can use GlobalObjectID but that and
EntryID are only valid after an item is sent.




Maurice said:
Hi,

specs: Outlook2003 WinXP

In my database I want to store the data I sent via Outlook. My plan is to
be
able to retract certain appointments if necassary. I thought I use the
EntryID for this and add this to my database. The EntryID however is only
there when the appointment is delivered. So not a steady, reliable
situation.
What kind of 'stamp' can I add to an appointment, mail or task so I can
check
my Sent Items to maybe retract an appointment via my Access database.

e.g. Send an appointment via Access - Outlook. Record is saved in
database.
Now I want to retract the appointment via the database. Record has some
sort
of [stamp] or unique identifier which I can check the sent items folder
with
to retract the appointment from the database with.

Hope this makes any sense otherwise let me know and i'll try to rephrase
it.

Thanks for any help in advance..
 
An item should always have EntryID after it's sent, I've never seen it not
have one. However, why not just save the item first and then send it. Of
course if it's an Exchange mailbox then EntryID would change when the item
is moved to Sent Items, in a PST file EntryID wouldn't change.

Are you positive that no EntryID is on the item right after it's sent and
moved to Sent Items? I'd run an ItemAdd handler on that folder to verify
that.
 
Also keep in mind that the appointment itself is never sent, only an
invitation/update/cancelation is.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Ken,

I'll rerun the code several times to double check. By head the code runs
well, sending the item and directly looping through the sent items folder to
check for the sent item. I'll post the code so you can take a look at it..

Thanks for the replies..
 
Back
Top