I have a google sheet file that needs to find the URL of another google sheet where only its name is known (I need its URL so I can retrieve the data externally through other apps).
To simplify this, I save both g-sheets files under the same folder in Google Drive. I understand I can do this within the same sheet as below, how can I do this when the "ss" refers to another google sheet file and I only know its name.
var ss = SpreadsheetApp.getActiveSpreadsheet();
Logger.log(ss.getUrl());
Ideally I want to do it through a cell formula but will be ok if I need to add a function to "script editor".