none
how can I tell send and send update with an appointmentitem in outlook RRS feed

  • Question

  • I want do something when an appointmentitem is to be send, but I don't know how to tell if it is to be send or to be update.

    Please help me if you know about it.

    Thanks a lot.

    Friday, June 15, 2012 1:27 PM

Answers

All replies

  • what do you mean by send or update? send first time or update to existing?
    Friday, June 15, 2012 2:16 PM
  • Hi, DamianD

    Thank you first, yes you are right, I want to distinguish send and update. And I am sure there must be something to tell them in outlook, because if the appointment is first send, the button would show "send", and if it is update,  the button will show"send update".

    Thanks again.

    Saturday, June 16, 2012 2:33 AM
  • Check the FInvited named property (DASL name is http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/8229000B) - if true, the invitations have already been sent.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Saturday, June 16, 2012 2:48 AM
  • Hi, Dmitry

    Thanks for your reply. But I can't find the property you mentioned, are you sure the propery's name is FInvited named property ,  and there always be some exception when I open the link you give me.

    Thanks.

    Saturday, June 16, 2012 3:25 AM
  • It is not a link, it is the DASL property name that you need to use when reading the property using AppointmentItem.PropertyAccessor.GetProperty()


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Saturday, June 16, 2012 3:52 AM
  • Hi, Dmitry,

    Here is my code snippet, I wrote it in c++, and there are alway build errors, could you help me about it?

    CODE:

    			CComQIPtr<Outlook::_PropertyAccessor> pa;
    			spApptmt->get_PropertyAccessor(&pa);
    			BSTR bstrPropName = L"http://schemas.microsoft.com/mapi/id/{00062002-0000-0000-C000-000000000046}/8229000B";
                VARIANT_BOOL varRes;
    			pa->GetProperty(bstrPropName,&varRes);

    BUILD ERRORS:

    1>e:\code\vs2005\src\plugins\connect.cpp(390) : error C2065: '_PropertyAccessor' : undeclared identifier
    1>e:\code\vs2005\src\plugins\connect.cpp(390) : error C2133: 'pa' : unknown size
    1>e:\code\vs2005\src\plugins\connect.cpp(390) : error C2512: 'ATL::CComQIPtr' : no appropriate default constructor available
    1>e:\code\vs2005\src\plugins\connect.cpp(391) : error C2039: 'get_PropertyAccessor' : is not a member of 'ATL::_NoAddRefReleaseOnCComPtr<T>'

    Saturday, June 16, 2012 7:56 AM
  • Do you build against the Outlook 2007 type library?

    PropertyAccessor was added in Outlook 2007.


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.3 is now available!

    Tuesday, June 19, 2012 5:44 AM