Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Word.run(function (context) {
  2. //method accepts property name plus value
  3. context.document.properties.customProperties.add(propertyname, value);
  4. return context.sync()
  5. .then(function () {
  6. console.log("Property saved");
  7. })
  8. .catch (function (e) {
  9. console.log("Error occured inserting property " + e.message);
  10.  
  11. });
  12. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement