Closed moeBabazadeh closed 6 months ago
@admir4l Thanks for reporting this issue. The work item(8031395) is created to track it. If there's any further progress, we'll sync with you. Thanks again.
This is still not working on Web Office and read mode!
Our PowerPoint add-in is facing a recent issue with the
Office.context.document.settings.get
method. It returns null uniquely in the presentation (read) mode of the web version, while operating as expected in the edit mode of the web version and in both modes on the desktop version. The add-in, published and functional for nearly a year, predominantly caters to desktop users, which makes the exact timeline of this problem's emergence unclear.P.S. It's important to mention that
Office.context.document.settings.refreshAsync
is consistently invoked before Office.context.document.settings.get, and it consistently returns successful results.Your Environment
Expected behavior
Our expectation is for consistent cross-platform performance of the Office.context.document.settings.get method. It should return identical data irrespective of the platform (desktop or web) or the current view of the PowerPoint presentation (edit or presentation mode).
Current behavior
Contrary to the expected behavior, the Office.context.document.settings.get method in our PowerPoint add-in is showing inconsistency. It correctly returns data in the edit mode of the web version and in both modes on the desktop version. However, it returns null specifically in the presentation (read) mode of the web version. This inconsistency is resulting in an uneven user experience across different platforms and modes and inhibiting us from delivering the functionality we aim for, as we are unable to fetch the correct data saved in the add-in instance.
Steps to reproduce
Office.context.document.settings.set("__ACTIVECLASS_ADDIN_SETTINGS", addinSettings);
whereaddinSettings
is a JavaScript object containing several string key-values.Office.context.document.settings.saveAsync
.Office.context.document.settings.refreshAsync
.Office.context.document.settings.get("__ACTIVECLASS_ADDIN_SETTINGS");
.Observe the issue when executing these steps in the presentation (read) mode of the web version of PowerPoint.
Context
This issue is currently a significant impediment requiring immediate resolution. Our add-in, reliably operational for nearly a year, is now affected, disrupting our users' experience. As the add-in functionality heavily relies on reading settings in presentation mode, your swift assistance to resolve this problem is crucial and highly appreciated.
Useful logs
For further clarity, please find attached two screenshots demonstrating the issue: