I’m experiencing an issue with the asynchronous execution order of .then() in a fetch request within my JavaScript script. The script is supposed to fetch an authentication token and then set it in an environment variable. However, it seems like the URL call for my application is happening before the .then() chains execute, leading to the use of an unset token. I need the token to be retrieved and set before making a subsequent request. So it successfully retrieves the token and the script is being executed until the first part of fetch, but before the .then it calls the url and then executes the rest of the s..

Read more

I have 1748 versions in Google Apps Script including the current version. I am trying to get down to below 200 to get below the 200 maximum coming in June. When I go to Manage Deployments, I see a bunch of versions in Active (versions I don’t use anymore) and a bunch of versions in Archived (2 of which I use). I also use the current ve..

Read more