I'm looking into building an add-in for Microsoft Word that would involve creating a copy of the current document.
I've found where I can copy an item through the OneDrive API. However, this requires the item-id for the document to be copied.
I can't seem to find how to get the item-id for the current Word document through the Office JavaScript API.
I've looked on the Office.context.document
object, as well as the Office.context.document.getFileAsync()
and Office.context.document.getFilePropertiesAysnc()
functions.
How would someone get the OneDrive Item Id for the current Word doc?