google-apps-script-simple-triggers

TypeError: Cannot read property “source” from undefined

我的梦境 提交于 2020-08-19 10:56:12
问题 I've searched through the forums a few times and I wasn't able to suss out an answer to my issue. I'm using Google Sheets to track project progress for my team. I currently have 5 users, each with their own tab, plus three additional tabs that are intended to be dynamic though fairly hands-off for any user except myself. In order to make this tracker easy to use, I've implemented an onEdit script to move any project that's marked "completed" from the user's tab over to the "completed" tab

TypeError: Cannot read property “source” from undefined

妖精的绣舞 提交于 2020-08-19 10:53:59
问题 I've searched through the forums a few times and I wasn't able to suss out an answer to my issue. I'm using Google Sheets to track project progress for my team. I currently have 5 users, each with their own tab, plus three additional tabs that are intended to be dynamic though fairly hands-off for any user except myself. In order to make this tracker easy to use, I've implemented an onEdit script to move any project that's marked "completed" from the user's tab over to the "completed" tab

Merge two onEdit with if functions?

匆匆过客 提交于 2020-07-10 10:26:52
问题 I have script for Google Sheets that I collected on interwebs and got some help here. No I have 2 onEdit in conflict. I overcome that by creating script Trigger for onEdit2 . It works but I don't think it is the best solution. Could you help get those two separated onEdit with if functions into one, please? //Dependent Dropdown list function onEdit(e){ // Function that runs when we edit a value in the table. masterSelector(master1,master2,master3,master4); var activeCell = e.range; // It

Script fails on SpreadsheetApp.openById - Requires permission

让人想犯罪 __ 提交于 2020-07-09 08:54:12
问题 I have an onOpen function that creates a custom menu in a spreadsheet. It's been working fine for over a year, but a couple days ago it stopped working. When I look at the execution transcript I get: "Execution failed: You do not have permission to call SpreadsheetApp.openById. Required permissions: https://www.googleapis.com/auth/spreadsheets" This fails/relates to the below line of code: var ss = SpreadsheetApp.openById("myID") I've checked what API's are enabled, and I have Sheets enabled,

How to reproduce “You do not have access to perform that action” on onOpen that only creates a menu

China☆狼群 提交于 2020-07-08 13:27:26
问题 Tl;Dr My partner and I published a Google Sheets add-on that is "randomonly" throwing "You do not have access to perform that action" when opening a spreadsheet. The onOpen function doesn't require authorization to be executed. Is there a way to reproduce/debug this error? The following is "minimal complete and verifiable example" except that so far I was not able to reproduce the error. It is a simple onOpen function that the only thing that it does is to create a menu with two options. file

We're sorry, a server error occurred while reading from storage. Error code PERMISSION_DENIED

天大地大妈咪最大 提交于 2020-07-05 07:46:11
问题 I wrote a google scripts editor addon, and published it to the google marketplace with private visibility (it is only visible to the users in my organization). I tested the addon with all types of permissions (installed for current user, enabled in current document, installed and enabled) in the script editor, and everything works as intended. However, after publishing the addon to the marketplace and installing it in a test spreadsheet, I keep getting this error: We're sorry, a server error

How to run multiple onEdit functions in the same google script (google sheets)?

只谈情不闲聊 提交于 2020-06-29 04:08:10
问题 I've been trying many different ways and none worked. I want a function that when someone types something, the content of the cell automatically turns upper case and eliminate all accents. E.g.: if I type "áéîõÂÃüÚ", it immediately becomes "AEIOAAUU". The following cases I've tried: Change the letter with accent for a normal letter then uppercase everything, in the same onEdit; Separate the functions in different onEdit; Just one onEdit that calls the functions in another script. This is my

How to run multiple onEdit functions in the same google script (google sheets)?

风格不统一 提交于 2020-06-29 04:07:17
问题 I've been trying many different ways and none worked. I want a function that when someone types something, the content of the cell automatically turns upper case and eliminate all accents. E.g.: if I type "áéîõÂÃüÚ", it immediately becomes "AEIOAAUU". The following cases I've tried: Change the letter with accent for a normal letter then uppercase everything, in the same onEdit; Separate the functions in different onEdit; Just one onEdit that calls the functions in another script. This is my

Best Practices for Multiple OnEdit Functions

空扰寡人 提交于 2020-06-29 03:48:14
问题 Problem I have 6 OnEdit Functions, which work as intended individually, but when together they don't work as intended. By this I mean some simply don't trigger. Properties of the Script They have different names - function onEdit(e) {code}, function onEdit1(e1) {code}, function onEdit2(e2) {code}, function onEdit3(e3) {code}, function onEdit4(e4) {code}, function onEdit5(e5) {code} They are all in the same .gs tab Some of them have the same variables. For example OnEdit has var range = e