I have been trying to get active sheet id from [this answer][1] using:
function getActiveSheetId(){
var id = SpreadsheetApp.getActiveSheet().getSheetId();
Logger.log(id.toString());
return id;
}
but my logger logs 0. Is there some other way to get the same? I want to read this sheet from another sheet file and then perform the operations.
[1]: https://stackoverflow.com/questions/26682269/get-google-sheet-by-id#:~:text=filter(%20function(s)%20%7B,Logs%20or%20use%20the%20debugger.