I need to get url address of current Spreadsheet by script without fixed address like this
let curURL = "https://docs.google.com/spreadsheets/d/1mCcmko-FvmTTJn8RDhlfWE0AZYPKlUnskqlc4-eYrJ4/edit?usp=sharing";
I tried to use this
let curURL = ScriptApp.getService().getUrl();
but I got empty value. Thank you for help!