Getting and setting document properties is not working in Office Online
Hello,
I am working on the Office Add-in for Word using the Office JavaScript API. Using Word in Office Online and the latest Word 2016 I could get and set document properties. This all worked but it has now stopped working in Office Online. I get the error when I try to use context.document.properties or context.document.properties.customProperties:
"Sorry, this function isn’t available. Perform a runtime check on the Office add-in to find out whether the feature is supported by the host."
I perform the check "Office.context.requirements.isSetSupported('WordApi', 1.3)" to ensure that the version 1.3 of the API is loaded and supported and the result is true.
As a separate check I used the Script Lab add-in (https://store.office.com/en-us/app.aspx?assetid=WA104380862&ui=en-US&rs=en-US&ad=US&appredirect=false) to see if it could get and set document properties. It shows exactly the same results in Office Online.
Since this worked a few weeks ago in Word in Office Online and now does not work has something been broken in Office Online?
Regards
Duncan

2 comments
-
sandeep commented
Hi,
Im not able to pick all document properties
for eg. SKU,Stage
-
AdminJuan Balmori (Admin, Microsoft) commented
Just checked this and its working. Also this is not the right audience for questions like this. We use this for feature requests. If you think there is an error with existing functionality please use stack overflow with tag office-js
thanks!