Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Word.run(function (context) {
- //method accepts property name plus value
- context.document.properties.customProperties.add(propertyname, value);
- return context.sync()
- .then(function () {
- console.log("Property saved");
- })
- .catch (function (e) {
- console.log("Error occured inserting property " + e.message);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement