0

I am wondering if it is possible to get the location a document has been loaded from, from within an office add-in?

I can get the host type and platform type but what I need next is the location

e.g.

I can see in the documentation that there is a Interface Office.FileProperties that has a property called url. https://learn.microsoft.com/en-us/javascript/api/office/office.fileproperties?view=common-js but I have no idea where to retrieve this value from in the actual add-in code or if it will actually have the value I am after.

Any insight would be much appreciated

Thanks in advance

in-pv
  • 15
  • 5

1 Answers1

0

The suggestions in this previously answered question are likely helpful: Office-js Excel: Get filename of newly saved file.