Howto: Check if Task Accepted or Declined

  • Thread starter Thread starter Topper
  • Start date Start date
T

Topper

Hello all

I use custom Exchange mailbox store global event sink.
My COM sink processed any item in mailbox store. It occured by
OnSave;OnDelete events.

My COM sink process assigned taskrequest: if user accepted or declined
assigned task.

The question is how can i determinate if current task accepted or declined
by user? Which MAPI property i can use?

Thanks, Alexander.
 
Don't get my words for free, but here is how I'd try:
1. Implement OnSave event (on either IExStoreSyncEvents or
IExStoreAsyncEvents) and use the item URL (and possibly the passed
IExStoreEventInfo) to get the item.
2. Check if the item is a TaskRequestItem or TaskItem. If is
TaskRequestItem, call GetAssociatedTask to obtain the TaskItem.
3. Check TaskItem property ResponseState. If the value is olTaskAccept (2),
is accepted, if is olaskDecline (3), is declined.

Maybe this can help...
Cristian Amarie
 
Hmmmm. i've check my accepted and declined tasks using Outlook Spy tool.
ResponseState is 0 in all cases.
Is that possible?
 
Back
Top