google-apps-script

“Can't visit this page” error when trying to access Google Scripts

前提是你 提交于 2020-06-01 05:48:14
问题 Google tech support are unable to help me because technically the problem is associated with a personal account. I often write scripts which are linked to spreadsheets in Google Sheets for my clients. Usually, they make a copy of the spreadsheet on their own Google Drive when I am finished, and they can then continue to use the scripts I've written. Recently I have 'transferred ownership' of a Google Sheet to a client. I am still able to edit the sheet and scripts file as a collaborator.

Google sheets - User/Email stamp triggered ON EDIT works only with OWNER account - how to enable user/email stamps for all editors?

空扰寡人 提交于 2020-06-01 05:38:46
问题 I need a solution to enable all editors to leave their name stamps after they make changes in a sheet. I was able to come up with script code which does work ONLY FOR OWNER. I tried to authorize the script by running the script manually from editors accounts - the app has the authorization but even though it doesn't work for Editors. Norbert Wagner: "However authorizing from the script editor did not work for me. But as soon as I added a menu in the document and executed the function from

My GSM Gmail addon does not show the card

空扰寡人 提交于 2020-06-01 05:35:11
问题 I have built a GSM add on and published it for my domain. I built the code, on Google Apps Script and set it up in Google API Console. I installed it for my domain, but it does not show the card in Gmail It should show in the sidebar, and in the compose window. It works fine when I install the head version from within google apps script, but then I publish it to GSM for users in my organization it doesn't work. The purpose of the addon is to collect information from fields in a card and use

My GSM Gmail addon does not show the card

倖福魔咒の 提交于 2020-06-01 05:35:10
问题 I have built a GSM add on and published it for my domain. I built the code, on Google Apps Script and set it up in Google API Console. I installed it for my domain, but it does not show the card in Gmail It should show in the sidebar, and in the compose window. It works fine when I install the head version from within google apps script, but then I publish it to GSM for users in my organization it doesn't work. The purpose of the addon is to collect information from fields in a card and use

How to extract individual array value from filtered row in app script for google sheets

走远了吗. 提交于 2020-05-31 04:56:47
问题 I am trying to extract individual array values from a Google Sheets Row which was filtered in app script. I have successfully filtered data/rows based on conditions of a empty cells in a column. But now, I keep getting the following error: TypeError: Cannot read property '0' of undefined at selectRecords(SendNotifications:21:22) Please note that I want to access all filtered rows all at the same time. For example, if I have Row 1 and 2, and if I want all 5 columns within these two rows, my

How to extract individual array value from filtered row in app script for google sheets

心已入冬 提交于 2020-05-31 04:56:05
问题 I am trying to extract individual array values from a Google Sheets Row which was filtered in app script. I have successfully filtered data/rows based on conditions of a empty cells in a column. But now, I keep getting the following error: TypeError: Cannot read property '0' of undefined at selectRecords(SendNotifications:21:22) Please note that I want to access all filtered rows all at the same time. For example, if I have Row 1 and 2, and if I want all 5 columns within these two rows, my

V8 engine no longer breaks on errors

一笑奈何 提交于 2020-05-31 04:46:36
问题 This issue has been reported to Google: https://issuetracker.google.com/issues/152948662 A short description of the issue In the Rhino runtime, the script debugger (script.google.com) would break on any line containing an error (handled or not) if the uses pressed the "debug" button on the toolbar. (It won't break if the user presses the "run" button). The watch windows would be activated and the user can inspect the variables in force at the time of the error. In the V8 runtime, the script

Service invoked too many times in a short time: exec qps. - Google Sheets

别说谁变了你拦得住时间么 提交于 2020-05-31 04:22:35
问题 I have been using custom functions to break out simple mathematics into readable JavaScript, but am getting the following error: Service invoked too many times in a short time: exec qps. Try Utilities.sleep(1000) between calls. (line 0). I have tried sleeping for a random time, but that doesn't help. My functions look like this: function conversationGrowthRate(clientCount, initialGrowthRate, conversationCount) { //Utilities.sleep(Math.random() * 30000); for (var i = clientCount; i > 10; i--)

Service invoked too many times in a short time: exec qps. - Google Sheets

若如初见. 提交于 2020-05-31 04:20:59
问题 I have been using custom functions to break out simple mathematics into readable JavaScript, but am getting the following error: Service invoked too many times in a short time: exec qps. Try Utilities.sleep(1000) between calls. (line 0). I have tried sleeping for a random time, but that doesn't help. My functions look like this: function conversationGrowthRate(clientCount, initialGrowthRate, conversationCount) { //Utilities.sleep(Math.random() * 30000); for (var i = clientCount; i > 10; i--)

Trying to match the date in the spreadsheet with today's date and send email

半城伤御伤魂 提交于 2020-05-30 16:04:33
问题 I have a spreadsheet which looks like this: Date | Day | S1 | S2 | S3 | S4 | S5 | S6 | ----------------------------------------------------------------- 14/04/20 | Sun | P-1 | H-1 | E-1 | R-1 | F-1 | G-1 | 15/04/20 | Mon | P-1 | H-1 | E-3 | R-1 | F-2 | G-2 | Intention is to send an email the schedules (S1 till S6) on that particular date. The script would run on a particular time of the day. It will compare today's date with the date on the first column. if the date matches, the data on that