Another option would be to use the getRange(a1Notation) function and pass Settings!B9
directly as a cell reference:
function myFunction() {
const ss = SpreadsheetApp.getActive();
const file_id = ss.getRange("Settings!B9").getValue(); // get value in "Settings!B9"
const folder_id = ss.getRange("Settings!C9").getValue(); // get value in "Settings!C9"
const googleDocTemplate = DriveApp.getFileById(file_id);
const destinationFolder = DriveApp.getFolderById(folder_id)
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…