M
Mark
During initialization, our add-in creates global object IDs for any
relevant appointments that don't have them, in case the entry IDs
later change. However this action itself triggers an item-changed
event. I tried calling Unadvise() on the Items object before making
these changes and then Advise() afterwards, but the events are still
triggered--possibly because Outlook only decides what events to send
after all our initialization code is run. Is there some way I can
ensure that particular changes won't trigger events? My workaround
right now is to remember all the global object IDs we created, then
ignore the first item-changed event for any items in the list, but I
don't much like this solution and would prefer something slightly more
elegant.
Mark
relevant appointments that don't have them, in case the entry IDs
later change. However this action itself triggers an item-changed
event. I tried calling Unadvise() on the Items object before making
these changes and then Advise() afterwards, but the events are still
triggered--possibly because Outlook only decides what events to send
after all our initialization code is run. Is there some way I can
ensure that particular changes won't trigger events? My workaround
right now is to remember all the global object IDs we created, then
ignore the first item-changed event for any items in the list, but I
don't much like this solution and would prefer something slightly more
elegant.
Mark