Is there an event for when recipients change in Outlook 2013? RRS feed

  • Question

  • I want to call a function in my JavaScript every time the recipients change in a compose mail view.
    Friday, July 4, 2014 10:48 PM


  • Hi Matts,

    There is no such event through JavaScript API for Office. You could submit feedback here.

    For a workaround, you could use window.setInterval method create a timer to keep watch on the changed of recipients. in the timer, you could use Recipient.getAsync method (JavaScript API for Office v1.1) to get recipients and store them as a temporary variable in compose mode. After that, you could compare the temporary variable and the result of Recipient.getAsync method (JavaScript API for Office v1.1).

    Please note this workaround will loss some performance.

    Hope this helps.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Edited by George Hua Monday, July 7, 2014 2:55 AM
    • Marked as answer by George Hua Monday, July 14, 2014 8:37 AM
    Monday, July 7, 2014 2:51 AM