New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrated spam-reporting add-in: Office.context undefined #4411
Comments
Hi @navmro |
Hi @neprasad-microsoft |
@navmro Could you please confirm if the issue is still reproable. We fixed an issue with the sample addins recently. |
@mmanjaree-msft I can see that new Outlook updated. I'm on version 1.2024.501.300 (Production). The error I get now is :
From the code at line 24 : It looks like the
I've uploaded a new extract from the console + the har on github for exextoc: |
The integrated spam reporting feature is still getting rolled out in outlook web and so it might not be fully available as mentioned in doc https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/spam-reporting#preview-the-integrated-spam-reporting-feature. It is in preview in classic outlook on windows and outlook on mac |
The current problem seems to be with the GetAsFileAsync feature, which is supposed to be in preview on the new outlook:
I know it's not fully ready yet, that's why I'm testing it and reporting bugs I find. |
@navmro Please refresh owa and confirm if its working for you now |
@mmanjaree-msft I confirm that it works on owa. Thank you very much :) |
Provide required information needed to triage your issue
Now that the feature for "integrated spam-reporting add-in" is also in preview for the new Outlook we're trying to have it work there. The plugin appears, the popup appears, but then timeout due to an undefined variable.
Your Environment
Expected behavior
After the popup appears when the user report an email, the "onSpamReport" callback should be called.
Current behavior
In the new Outlook on Windows, the popup appears, but when the button is clicked it spins until timeout:
Opening the plugin in the web version on https://outlook.office.com/ (not my targeted environment).
We can see an error in the debugger when the button is pressed:
The bit of code where the error is come from the plugin :
https://github.com/OfficeDev/Office-Add-in-samples/blob/main/Samples/outlook-spam-reporting/src/spamreporting.js#L41
And from the documentation:
https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/spam-reporting#implement-the-event-handler
Steps to reproduce
I've used both the Sample "integrated spam-reporting addin":
Or my sample plugin (https://github.com/navmro/antiphishing) which is just following documentation:
npm start
Both have the same code, coming from the documentation.
Provide additional details
Removing the
if (Office.context.platform === ...
check allows the plugin to move forward, the callback is called. But then fails later with an error:Error encountered during message processing: The operation is not supported.
from:https://github.com/OfficeDev/Office-Add-in-samples/blob/main/Samples/outlook-spam-reporting/src/spamreporting.js#L14
I've not investigated that yet.
Context
We're trying to replace our existing VSTO spam-reporting addin with a new one that would work in the new Outlook.
The new JS plugin works on the old outlook desktop app, but not in the new Outlook desktop app.
Useful logs
The logs on chrome were already provided above.
For the new Outlook on desktop, no logs were found in the event viewer. Despite the documentation mentionning to check there:
https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/troubleshoot-event-based-and-spam-reporting-add-ins
Is the event viewer the correct places for logs on the new Outlook on desktop ?
The text was updated successfully, but these errors were encountered: