How to read and write the custom attributes of a Word 2016 document using Word JavaScript API 1.1?

Vittorio Schiavinato 1 Reputation point
2021-10-07T14:11:34.833+00:00

We are developing an Add-In for Word 2016 using the Word JavaScript API 1.1 libraries, that are supported by Word 2016.

The goal of this Add-In would be to read and write the custom attributes of a Word document.

However, we find no documentation explaining how to achieve this goal.

All the examples we found refer to the "context.document.properties.customProperties" that does not exist in the Word JavaScript API 1.1; it seems to be part of the Word JavaScript API 1.3, which however is not supported on Word 2016 (only on Word 2019 or 365).

So, our question is: how to read and write the custom attributes of a Word 2016 document using Word JavaScript API 1.1?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
940 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,709 questions
{count} votes