We currently have 2 ways to get Url via API. They are:
- Office.context.document.url
- Office.context.document.getFilePropertiesAsync(function (asyncResult) {const fileUrl = asyncResult.value.url;...}
However, both of them only support online path. If you expect to add the ability to get local path as well, it would be very helpful if you could help us create a new post in our technical forum so that more people with similar requests can join the discussion and upvote for this idea.
Thank you for your feature suggestion and your active participation!!