Javascript - Get Filepath from Google Docs

1

Good afternoon everyone!

Maybe someone has already worked with Google docs (g-suite) and can give an idea with this problem.

The company will migrate from office to g-suite, so all documents and spreadsheets will be online.

We have a productivity system that maps the names of files ( FileName ) accessed as well as your network paths ( Filepath ) to see if users are working with which they should work.

Well, within the g-suite google, we can not get some information automatically, but we can use Javascript to bring the information when the user accesses, for example, when the user opens a document, I identify by the URL that it comes from something in google docs and I search with a command the name of the file:

document.getElementsByClassName('docs-title-input')[0].value

The problem is with finding the Filepath , that is, the folders and subfolders inside the drive where this file is stored. I've been trying to find a way to bring this up for 2 days, but I do not find it because I think the page code does not make it available (no, I'm not sure and I'm not a Javascript expert).

If someone has seen a situation like this, I appreciate any help.

    
asked by anonymous 20.07.2018 / 19:46

0 answers