Get the IDs of the files in different folders
问题 This is a follow-up question for this thread. Is there a way for me to get the IDs of the file in a different folder? Below is the directory of what I'm working on. And this is the code that I'm using. function myFunction() { const ss = SpreadsheetApp.getActive(); var SSID = ss.getId(); //sheet id var spreadsheetFile = DriveApp.getFileById(SSID); var folderId = spreadsheetFile.getParents().next().getId(); const sh = ss.getSheetByName('Sheet4'); // change that to the name of your sheet const