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

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?
 
K

Ken Slovak - [MVP - Outlook]

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

denis khodak

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

Ken Slovak - [MVP - Outlook]

Then close and re-open is the only way I know of to update the display.
 
D

denis khodak

Close/re-open works, the only downside is that user experience is far from
ideal :( Thanks again!
 
T

Toxter

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
 

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