How to add appointment’s non-sendable recipients programmatically?

  • Thread starter Thread starter denis khodak
  • Start date Start date
D

denis khodak

I’m trying to add non-sendable Outlook 2003 appointment attendees to the
active appointment compose window programmatically using properties
PidLidNonSendableTo (PSETID_Common 0x8536) and PidLidNonSendToTrackStatus
(PSETID_Common 0x8543).
The problem is that inspecotr does not display them immediately immediately.
If I close appointment and open it again I can see non-sendable recipients,
however I cannot make Outlook display them without closing inspector. I tried
adding/removing resipients, changing properties, calling Display() method,
but nothing seems to work. Is it possible to do?
 
What API are you using to add them? If it's not the Outlook object model
(obviously) then are you setting any properties from the object model after
saving your changes that might fake Outlook into thinking something has
changed on the item? One such trick is setting item.Subject to itself and
then calling the item.Save() method.
 
Thanks for reply! In Outlook 2003 and 2007 I tried Extended MAPI and in 2007
tried new PropertyAccessor API, neither of them work.
Unfortunately item.Subject = item.Subject and calling Save() method didn’t
help either.
 
Then close and re-open is the only way I know of to update the display.
 
Close/re-open works, the only downside is that user experience is far from
ideal :( Thanks again!
 
Hi Denis,

Can you please post a source code sample where you add non-sendable using Outlook 2007 PropertyAccessor.
I'm having similar problem and can't add recipient (even after Save and reopen of Inspector).

Thank you.
 
Hi Denis,

Can you please post a source code sample where you add non-sendable using Outlook 2007 PropertyAccessor.
I'm having similar problem and can't add recipient (even after Save and reopen of Inspector).

Thank you..
Submitted using http://www.outlookforums.com
 
Back
Top