I have requirement in which I want to access current editing document Metadata from SharePoint(online) Library using Office Add-in.

I have created word add-In using office js in SharePoint online. I want to get all properties of document(site URL, document library name , file name etc.) I can only get file URL using Office.context.document.url(articel URL). How can I get other properties?

Any help would be appreciated.


If you are looking to access the document properties (not the Sharepoint document library metadata) then you can do so via document.getfilepropertiesasync. However if you are looking to access the Sharepoint document library metadata then you would have to access the Sharepoint REST API or the Graph API to get the same

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.