Howto: Check if Task Accepted or Declined

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.
 
C

Cristian Amarie

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
 
T

Topper

Hmmmm. i've check my accepted and declined tasks using Outlook Spy tool.
ResponseState is 0 in all cases.
Is that possible?
 

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