Suppose I have a drive with the following structure:
Under My drive:
google_sheet_E
Main_Folder
- Folder_A
- Folder_B
- google_sheet_C (in google sheet format)
- MS_excel_D.xls (in excel format, upload to drive directly)
Note: google_sheet_E is located on the top layer of the drive, whereas, the C, and D, are located few levels below.
I would like to reference some data from google_sheet_C and MS_excel_D.xls to google_sheet_E.
In Google Apps Script, my current method is to get by ID, but I find this method inconvenient, since I have to get ID every time, therefore I am planning to use the file name instead. Is there any method/function to access a sheet similar to the path system in Windows? (i.e. Traverse the folders.)
Another question: Is there any good method to let users share from their drive to the spreadsheet automatically under a specific path?