Google sheets: Working code for get IDs but result should be align on the filename row
问题 The IDs should be aligned like the sample on the left side. But as you can see on the right side, everything is working fine until row 11. Can someone help me with this one? Here's the code that I'm using. I got it from here. function myFunction() { const ss = SpreadsheetApp.getActive(); var SSID = ss.getId(); var spreadsheetFile = DriveApp.getFileById(SSID); //get file by id //var folderId = spreadsheetFile.getParents().next().getId(); var folderId = "1vn5n00iCpKUWe_JsTFAesQsSmBsXu36i";