Get first item from Split()

You can use the index function to select which value to return. So to retrieve the second value from your example you could use: =index(SPLIT(“1.23/1.15”, “https://stackoverflow.com/”), 0, 2) The last argument says which column you wish to retrieve – 1 would retrieve the first value. Alternatively you could use left / right and find to … Read more

How to debug Google Apps Script (aka where does Logger.log log to?)

UPDATE: As written in this answer, Stackdriver Logging is the preferred method of logging now. Use console.log() to log to Stackdriver. Logger.log will either send you an email (eventually) of errors that have happened in your scripts, or, if you are running things from the Script Editor, you can view the log from the last … Read more

Google Sheets API returns “The caller does not have permission” when using server key

To solve this issue, try to: Create a service account: https://console.developers.google.com/iam-admin/serviceaccounts/ In options, create a key: this key is your usual client_secret.json – use it the same way Make the role owner for the service account (Member name = service account ID = service account email ex: thomasapp@appname-201813.iam.gserviceaccount.com Copy the email address of your service … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)