google-apps-script

GAS Library and WebApp Permissions [ReferenceError: “service” is not defined.]

本秂侑毒 提交于 2021-01-29 03:34:53
问题 Background / Summary I have been using libraries extensively and I am now getting my permissions setup so I can distribute the app to some users for testing. Unfortunately, it's being very unpredictable. I've simplified the problem as follows: I have a simple webApp that is making a simple API call to a fusion table. It calls a function in my Fusion Tables Library. The function in my Fusion Table Library also uses a function from my OAuth Library. This process has worked perfectly when

Java script optimization for a google apps script

南楼画角 提交于 2021-01-29 02:26:37
问题 I have the working code below that compares two sets of data from two different sheets. One is a list of 395 phone numbers, the second is a list of around 135,000 rows of data. The following code compares the two for similarities and copies the similar row to a third sheet. While the code does work for small scale tests, (1000 rows and 395 phone numbers) in around 10 minutes. However doing 135,000 rows makes the script time out. Here is the script below. `function copyRowtoSheet3() { var s1 =

Google Scripts: Installable Trigger Failing with Test Add-On

百般思念 提交于 2021-01-29 00:57:40
问题 I have been wrestling with an installable trigger issue for a couple of days now. All of my research indicates that an add-on should allow for an installable onEdit() trigger within a spreadsheet, but my attempts keep erroring out. I have simplified my project code a bit to exemplify my issue. The error message: Execution failed: Test add-on attempted to perform an action that is not allowed. My code (listing functions is the order that they are called): function onOpen() //creates custom

Google Scripts: Installable Trigger Failing with Test Add-On

怎甘沉沦 提交于 2021-01-29 00:47:53
问题 I have been wrestling with an installable trigger issue for a couple of days now. All of my research indicates that an add-on should allow for an installable onEdit() trigger within a spreadsheet, but my attempts keep erroring out. I have simplified my project code a bit to exemplify my issue. The error message: Execution failed: Test add-on attempted to perform an action that is not allowed. My code (listing functions is the order that they are called): function onOpen() //creates custom

Google Scripts: Installable Trigger Failing with Test Add-On

喜欢而已 提交于 2021-01-29 00:47:47
问题 I have been wrestling with an installable trigger issue for a couple of days now. All of my research indicates that an add-on should allow for an installable onEdit() trigger within a spreadsheet, but my attempts keep erroring out. I have simplified my project code a bit to exemplify my issue. The error message: Execution failed: Test add-on attempted to perform an action that is not allowed. My code (listing functions is the order that they are called): function onOpen() //creates custom

Google Scripts: Installable Trigger Failing with Test Add-On

自作多情 提交于 2021-01-29 00:45:51
问题 I have been wrestling with an installable trigger issue for a couple of days now. All of my research indicates that an add-on should allow for an installable onEdit() trigger within a spreadsheet, but my attempts keep erroring out. I have simplified my project code a bit to exemplify my issue. The error message: Execution failed: Test add-on attempted to perform an action that is not allowed. My code (listing functions is the order that they are called): function onOpen() //creates custom

In delimited string replace substring between the delimiters only if the substring matches replacement value

谁说胖子不能爱 提交于 2021-01-29 00:12:28
问题 I need to in a delimited string, replace substring between the delimiters only if the substring matches the replacement value Using this in Google sheets The matching var ifind = ["AA", "CaaL"]; var ireplace = ["zz", "Bob"]; zz replaces AA Bob replaces CaaL I have | Id | Segment | |----|--------------------| | 1 | AAA AA|AA|CaaL AA | | 2 | AAA-AA|AA|CaaL | | 3 | AAA, AA|AA|AA | | 4 | AA | | 5 | AA AA | | 6 | AA, AA | | 7 | | | 8 | CaaL | | 9 | AA | I need | Id | Segment | |----|--------------

In delimited string replace substring between the delimiters only if the substring matches replacement value

◇◆丶佛笑我妖孽 提交于 2021-01-29 00:10:55
问题 I need to in a delimited string, replace substring between the delimiters only if the substring matches the replacement value Using this in Google sheets The matching var ifind = ["AA", "CaaL"]; var ireplace = ["zz", "Bob"]; zz replaces AA Bob replaces CaaL I have | Id | Segment | |----|--------------------| | 1 | AAA AA|AA|CaaL AA | | 2 | AAA-AA|AA|CaaL | | 3 | AAA, AA|AA|AA | | 4 | AA | | 5 | AA AA | | 6 | AA, AA | | 7 | | | 8 | CaaL | | 9 | AA | I need | Id | Segment | |----|--------------

In delimited string replace substring between the delimiters only if the substring matches replacement value

梦想与她 提交于 2021-01-29 00:04:51
问题 I need to in a delimited string, replace substring between the delimiters only if the substring matches the replacement value Using this in Google sheets The matching var ifind = ["AA", "CaaL"]; var ireplace = ["zz", "Bob"]; zz replaces AA Bob replaces CaaL I have | Id | Segment | |----|--------------------| | 1 | AAA AA|AA|CaaL AA | | 2 | AAA-AA|AA|CaaL | | 3 | AAA, AA|AA|AA | | 4 | AA | | 5 | AA AA | | 6 | AA, AA | | 7 | | | 8 | CaaL | | 9 | AA | I need | Id | Segment | |----|--------------

In delimited string replace substring between the delimiters only if the substring matches replacement value

左心房为你撑大大i 提交于 2021-01-28 22:39:33
问题 I need to in a delimited string, replace substring between the delimiters only if the substring matches the replacement value Using this in Google sheets The matching var ifind = ["AA", "CaaL"]; var ireplace = ["zz", "Bob"]; zz replaces AA Bob replaces CaaL I have | Id | Segment | |----|--------------------| | 1 | AAA AA|AA|CaaL AA | | 2 | AAA-AA|AA|CaaL | | 3 | AAA, AA|AA|AA | | 4 | AA | | 5 | AA AA | | 6 | AA, AA | | 7 | | | 8 | CaaL | | 9 | AA | I need | Id | Segment | |----|--------------