none
PropertyChange Event firing RRS feed

  • Question

  • I have an Outlook Addin where I'm updating/creating tasks.  For some reason, after it goes through and updates all the tasks and saves them, the PropertyChange event fires for the StatusUpdateRecipients and StatusOnCompletionRecipients fields.  This causes my ItemChange event to fire and I don't want it too.  I don't set those fields.  When I tried setting them to nothing, this still happens.  

    Here is what OutlookSpy told me on one task:

     

    //1. I update these fields and save (this part is correct)//

    Read ()

    PropertyChange (Subject)

    PropertyChange (Body)

    PropertyChange (Categories)

    PropertyChange (Categories)

    PropertyChange (Importance)

    PropertyChange (ActualWork)

    PropertyChange (TotalWork)

    CustomPropertyChange (COL ID)

    CustomPropertyChange (COL Ancestor ID)

    CustomPropertyChange (COL Ancestor Name)

    CustomPropertyChange (COL Top Ancestor ID)

    CustomPropertyChange (COL Top Ancestor Name)

    CustomPropertyChange (COL Row Type)

    CustomPropertyChange (COL Disconnect)

    Write (false)

    BeforeCheckNames (false)

    AfterWrite ()

     

    //2.  Then about 15 seconds later it fires this event multiple times per each Task even though I don't set these fields //

    PropertyChange (StatusUpdateRecipients)

    PropertyChange (StatusOnCompletionRecipients)

    BeforeRead ()

    PropertyChange (StatusUpdateRecipients)

    PropertyChange (StatusOnCompletionRecipients)

    BeforeRead ()

     

    I have tried to work around this by using the Write Event instead of the ItemChange, however, I need the task item in the Write Event.  I can get it with the Inspector if they actually open the Task, but if they make inline changes on the Task list, the Write Event has no Inspector to reference.  So I need to get this PropertyChange event to stop happening, or I need a different way to do an action on change of a Task - both in an Inspector window and not.  Any help is greatly appreciated!


    Cindy
    Friday, December 23, 2011 4:17 PM

All replies

  • Hi Cindy,

    Thanks for posting in the MSDN Forum.

    Would you please show me the snippet which you used to update your task items?

    Have a good day,

    Tom


    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Monday, December 26, 2011 12:13 PM
    Moderator