Basic Outlook 2007 question - how do I know if invitations were se

M

mikeo

Hi,

I am writing a VSTO 2005SE add-in for Outlook 2007 in VS 2005 (Exchange 2007
server) and I have a simple question regarding the Outlook 2007 object model:
What AppointmentItem properties/methods tell me whether or not invitations
have been sent for this appointment item? Outlook knows, because it displays
the message "Invitations have not been sent for this message" below the
ribbon bar. How can my add-in access this information?

Thanks in advance,
Mike
 
K

Ken Slovak - [MVP - Outlook]

Using the Outlook object model you can look at the Boolean ResponseRequested
property and the ResponseStatus enum. Using a lower level API such as CDO
1.21 or Redemption (www.dimastr.com/redemption) you can also look at various
sending properties to see if, when and to who the request was sent.
 
M

mikeo

Hi Ken,

Thanks for your quick reply.

I've investigated the ResponseStatus property and it isn't giving me the
granularity I'm looking for. The ResponseRequested property looked promising
- until my testing showed that it is "True" as soon as I create an
appointment, even before clicking on "invite attendees" (i.e. MeetingStatus
is still non-meeting). Can you tell me offhand how/when the
ResponseRequested property changes? It may be that my code is doing
something that causes it to be True right off the bat, but nothing's jumping
out at me ...

As for the lower level API, I'll go there if I have to, but I'd prefer to
keep it simple and stick with VSTO if possible.

Thanks again for your help,
Mike

--
Mike O''Shaughnessy
Software Consultant
Centerprise Information Solutions
http://www.centerprise.ca
 
K

Ken Slovak - [MVP - Outlook]

VSTO is a platform, not an object model. I use Redemption quite a lot with
VSTO addins. Other low level API's such as CDO 1.21 or Extended MAPI (C++ or
Delphi only) are not supported for use with managed code.

That's about it, unless you go to looking at MAPI properties using a low
level API (or use Outlook 2007's new PropertyAccessor object, which provides
access to MAPI properties by property tag).

I don't think you're doing anything to ResponseRequested, that's just the
way it works.
 
M

mikeo

Hi Ken,

I've looked at the list of MAPI property tags and investigated the obvious
ones but haven't really found the one that will solve the problem. Can you
(or anyone) suggest which tag(s) will help me determine whether or not an
appointment item has been sent?

Thanks in advance,
Mike

--
Mike O'Shaughnessy
Software Consultant
Centerprise Information Solutions
http://www.centerprise.ca
 
K

Ken Slovak - [MVP - Outlook]

Well, I see at least one property that changes depending on whether the
invitation was sent yet, FInvited. That has a DASL property tag of
"http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/8229000B",
or Guid = "{00062002-0000-0000-C000-000000000046}", ID = 0x8229 and it's a
PT_BOOLEAN.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top