In my outlook WebAddin, i am trying to register for mail ItemChange event using below code.
Office.context.mailbox.addHandlerAsync(Office.EventType.ItemChanged, mailItemSelectionChanged, [], function (result) {
if(result && result.status != 'succeeded'){
console.error('result => ' + result);
}
});
Whenever user changes mail in pinned mode, i receive mail change event for first time. then if there is change in conversation, i am reloading the plugin with location.reload() to clear the cache and load addin fresh.
After reload of plugin, it fails to register mailItemChange event and throwing below error :
{"code": 5001, "message": "An internal error has occurred.", "name": "Internal Error"}
It is failing in Browser and some windows machines(working in many other cases).
outlookDiagnostics :
{"host": "Outlook", "platform": "OfficeOnline", "version": "16.0.9215.1000"}