UrlFetchApp not defined
1 answer
The URL lookup service and its UrlFetchApp class are part of Google Apps Script , a javascript-based server-side scripting language that allows you to distribute Google Apps products such as Docs, Sheets, and Forms using custom functions.
The UrlFetchApp class is NOT available in client-side javascript, which is similar to what you are trying to do. It can only be used in Google Apps Script.gs server side files.
+3
source to share