Open glr0221 opened 2 days ago
@glr0221 Can you please share any console logs you see for new outlook when you run into this issue. This will help us in out investigation. Also if possible any screenshot of the behavior you are seeing
@mmanjaree-msft would be happy to help. How do I get the logs from the browser or new look outlook? Or are you referring to the browser's console logs? Thanks
@glr0221 Whenever and wherever this issue is encountered please share the browser console logs. To open devtools in new desktop outlook follow this https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/one-outlook#debug-your-add-in.
Also if possible please share your initialization code
@mmanjaree-msft
Thank you for your responses. As for the initialization code, I am using the same code as the spam addin sample :
// Ensures the Office.js library is loaded.
Office.onReady(() => {
/**
* IMPORTANT: To ensure your add-in is supported in the classic Outlook client on Windows,
* remember to map the event handler name specified in the manifest to its JavaScript counterpart.
*/
if (Office.context.platform === Office.PlatformType.PC || Office.context.platform == null) {
Office.actions.associate("onSpamReport", onSpamReport); }
});
As for the console logs, there was nothing in there. Except that a deprecated feature is used warning gets incremented each time the Office.onReady() is called.
I hope this helps.
Provide required information needed to triage your issue
Spam addins hang because office.onready() and/or office.initialize() get stuck on loading.
Your Environment
Expected behavior
Office.OnReady or Office.Initialize should work all the time under the right conditions.
Current behavior
Both/Either of the APIs get stuck and the spam addin is left hanging.
Steps to reproduce
Currently I don't have exact steps to reproduce. However, it can be reproduced reliably in my environment in one of the emails I received. I tried exporting the email as an msg file, imported it but could not repro using the imported msg file.
Link to live example(s)
None
Provide additional details
A video which shows this behavior will be provided via email. Thanks for understanding.
Context
This makes the spam addin solution unreliable unfortunately.
Useful logs
Again, a video which shows this behavior will be provided via email.
Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.