Getting Responsestatus from MeetingItem

  • Thread starter suffporter@googlemail.com
  • Start date
Status
Not open for further replies.
S

suffporter@googlemail.com

Good Morning,

when sending a mail out of Outlook the OnItemSend Event is triggered:

procedure onitemsend(Sender : TOutlookApplication; const Item:

IDispatch; var Cancel: WordBool);

If the item is a MeetinItem is it possible to get to know from it how

the user has answered the meeting request(accept/decline/tentative)?

At the moment i fetch the appointment with .GetAssociatedAppointment

and there i take appointment.ResponseStatus. But for my purpose it

would be better to get it from the MeetingItem.

So is there a way to get the answer of the user?

Greets

Hans Schmidt
 
Use what you've been using, that's how to do it.

<suffporter@googlemail.com> wrote in message

news:e9ee47bb-27c0-48e2-b461-6262aff02431@c36g2000yqn.googlegroups.com...
> Good Morning,

> when sending a mail out of Outlook the OnItemSend Event is triggered:

> procedure onitemsend(Sender : TOutlookApplication; const Item:
> IDispatch; var Cancel: WordBool);

> If the item is a MeetinItem is it possible to get to know from it how
> the user has answered the meeting request(accept/decline/tentative)?

> At the moment i fetch the appointment with .GetAssociatedAppointment
> and there i take appointment.ResponseStatus. But for my purpose it
> would be better to get it from the MeetingItem.
> So is there a way to get the answer of the user?

> Greets

> Hans Schmidt
 
Thank you very much for your answer.

There is just one problem when using it that way. If the user declines

the appointment there is no problem getting the assciated

appointment.

But when using appointment.ResponseStatus there comes the error

message that the appointment has moved or has been deleted.

Can i be sure if i set this in a try..except for example and the call

failes that the user declined that appointment?

Greets

Hans Schmidt
 
No, you cannot assume that. You can use the GlobalObjectID property to

identify those items, that never changes no matter where an appointment is

moved to.

<suffporter@googlemail.com> wrote in message

news:e1a7d9ec-caf8-4559-bdab-9d069f536514@h20g2000yqn.googlegroups.com...
> Thank you very much for your answer.

> There is just one problem when using it that way. If the user declines
> the appointment there is no problem getting the assciated
> appointment.
> But when using appointment.ResponseStatus there comes the error
> message that the appointment has moved or has been deleted.
> Can i be sure if i set this in a try..except for example and the call
> failes that the user declined that appointment?

> Greets

> Hans Schmidt
 
I'm sorry, but where can i find the GlobalObjectID? In the Type

Library this property isn't defined? Does that mean that this is out-

dated?

Thank you in advance

Greets

Hans Schmidt
 
That was exposed in the object model as GlobalAppointmentID in Outlook 2007.

In Outlook 2003 it's there for SP2 or later, but you have to use a lower

level API such as CDO 1.21 or Extended MAPI or Redemption

(www.dimastr.com/redemption) to get at it.

If you can't use a lower level API and aren't using Outlook 2007 then you'd

have to scan all appointments and look for matching characteristics such as

subject, start and end times, locations, etc.

<suffporter@googlemail.com> wrote in message

news:a0034a3e-0c9f-4764-ba20-e5743de45427@40g2000yqe.googlegroups.com...
> I'm sorry, but where can i find the GlobalObjectID? In the Type
> Library this property isn't defined? Does that mean that this is out-
> dated?

> Thank you in advance

> Greets

> Hans Schmidt
 
Good Morning,

i've bought Redemption some time ago and i'm using Extended Mapi :)

My problem is that after getting the reference to the associated

appointment

neither reading a property nor appitem.MAPIOBJECT.QueryInterface

(IID_IMessage,imsg)

works. So i have no chance to read the GlobalAppointmentID. What did i

do wrong?

Greets

Hans Schmidt
 
For Extended MAPI code questions you are best off posting to the

microsoft.public.win32.programmer.messaging group, that's where the MAPI

experts hang out.

For Redemption how you access that property depends on how you are

instantiating or getting a reference to the appointment objects. Don't

forget that property is only there for Outlook 2003 SP2 or later.

Where it is there you would use:

GetIdsFromNames("{6ED8DA90-450B-101B-98DA-00AA003F1305}", 0x3) | PT_BINARY

to get the property tag, then you'd query the Fields collection of the

Redemption object to get that property.

To use it as a string ID value you'd need to convert the binary bytes into a

string, possibly using the MAPIUtils.HrArrayToString() method.

<suffporter@googlemail.com> wrote in message

news:05fb4b39-bbc8-473a-b3d2-500d55b46dd6@o11g2000yql.googlegroups.com...
> Good Morning,

> i've bought Redemption some time ago and i'm using Extended Mapi :)
> My problem is that after getting the reference to the associated
> appointment
> neither reading a property nor appitem.MAPIOBJECT.QueryInterface
> (IID_IMessage,imsg)
> works. So i have no chance to read the GlobalAppointmentID. What did i
> do wrong?

> Greets

> Hans Schmidt
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
L Getting Index from dropdown inserted on ribbon Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i Question about installing my Gmail account on my iPhone but still getting messages downloaded to my desktop Outlook. Using Outlook 3
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
W Outlook 365 I am getting the "Either there is no default mail client" error when I try to send an email on excel Office 365 Using Outlook 1
H Outlook 365 issue getting details from embedded files, crashing routine Outlook VBA and Custom Forms 0
A Links in email getting error message about group policy Using Outlook 4
Commodore Getting rid of "This computer only" Using Outlook 4
V Outlook 2016 Multiple recurring tasks getting created Using Outlook 0
P PST file is getting huge under POP 3 Using Outlook 2
N contact notepad 'style' getting changed after clicking and running Activities Using Outlook 2
S Outlook [Online - Office365] perfomance is getting affected when accessing the mails using Redemptio Using Outlook 1
D Close Oulook after sending emails via vba without outbox getting stuck. Outlook VBA and Custom Forms 1
C im getting a type mismatch error Outlook VBA and Custom Forms 3
William getting custom form to load category colors Outlook VBA and Custom Forms 4
C Getting back previous computer owner Outlook email Using Outlook.com accounts in Outlook 1
B Recipient of a forwared message getting multiple emails Using Outlook 2
S Outlook 2010 I am getting error code 0x8DE00006 'the operation failed'. outlook 2010 send/receive progress Using Outlook.com accounts in Outlook 2
S Mails getting downloaded multiple times Using Outlook 1
Rory Campion Not getting a warning when a shared calendar item has been updated by someone else Using Outlook 2
E Getting IMAP email into existing pst file Using Outlook 6
J Just installed Outlook 2010 on computer and user is getting a 0x80004005 error Using Outlook.com accounts in Outlook 1
R Getting a colleagues appointments and calendar entries Using Outlook 1
E Getting Outlook full name correct with AddressLayout Using Outlook 1
P I'm getting an error when opening Outlook "Mobile me stopped working Using Outlook 1
D Need Help with Script. Keep getting Runtime Error 438 BCM (Business Contact Manager) 4
R Need help getting BCM to work with my Outlook 2014 Using Outlook 4
D Help Getting Started? BCM (Business Contact Manager) 4
P I am getting an error msg = cannot open file access denied Using Outlook 3
K why is a user getting email respond for invite respond that she didn't set up. Using Outlook 3
B email getting cut off Using Outlook 9
L Need help getting calendar/contacts/tasks/notes back! Using Outlook 3
M Email Format getting changed to Plain Text Using Outlook 1
G Outlook 2013: Getting meeting invites in OWA format Using Outlook 9
M Getting messages from multiple email address Using Outlook 1
B not getting email from people Using Outlook 3
L Outlook 2010 - Keep getting "Corrupted File" Msgs Using Outlook 4
mrje1 Assigned Categories keep getting deleted in mail, bug? How to fix if possible? Using Outlook 5
Commodore Why some RSS feeds stop getting updates? Using Outlook 12
M All e mails seem to be getting blocked BCM (Business Contact Manager) 7
J Send/receive getting stuck Using Outlook.com accounts in Outlook 1
R Getting my Claendar additions to appear in Outlook Today Using Outlook 7
J Getting Contact Name to show on Calendar Using Outlook 2
D outlook getting stuck receiving Using Outlook 1
Y MICROSOFT OUTLOOK 2007 - i KEEP GETTING THE "ENTER NETWORK PASSWORD" BOX POPPING UP - IT IS ALREADY Using Outlook 4
T getting an error This file does not have a program associated with it for performing this action. C Using Outlook 7
C getting the subject line out of a mail Outlook VBA and Custom Forms 2
S Trying to install BCM 2010 x64, getting error BCM (Business Contact Manager) 8
Q I cannot start Outlook 2007 I keep getting this error: __'Cannot start outlook window. Invalid XML,the view cannot be loaded.' Using Outlook 3
N Getting the attachments in MailItem Outlook VBA and Custom Forms 1
K Getting (internal) sender's account ID (userID) Outlook VBA and Custom Forms 2

Similar threads

Back
Top