google-apps-script

How to stop receiving email failures for Google Apps Script: Email Scheduler for Gmail?

巧了我就是萌 提交于 2020-02-21 06:49:21
问题 I am not tech savy here but I would appreciate a simple straight english language to tell me what I can do to stop receiving those emails that I get everyday. Can anyone point me to the right direction with or without tutorial? Many thanks 回答1: I have been having this issue for ages and I think I just found out how to stop it. Basically the removal of the "Email Scheduler for GMail" script does not remove the trigger when the uninstall happens so we have to do it manually. Go to script.google

UrlFetchApp is not defined

和自甴很熟 提交于 2020-02-20 07:58:54
问题 I am calling UrlFetchApp.fetch("www.google.com") from my chrome javascript code and I am getting: Uncaught ReferenceError: UrlFetchApp is not defined Anyone know why it is not defined? I thought it was built in. 回答1: URL Fetch Service and its UrlFetchApp class are part of Google Apps Script - a javascript-based server-side scripting language that allows you to extend Google Apps products like Docs, Sheets and Forms with custom functionality. UrlFetchApp class is NOT available in client-side

UrlFetchApp is not defined

余生颓废 提交于 2020-02-20 07:58:10
问题 I am calling UrlFetchApp.fetch("www.google.com") from my chrome javascript code and I am getting: Uncaught ReferenceError: UrlFetchApp is not defined Anyone know why it is not defined? I thought it was built in. 回答1: URL Fetch Service and its UrlFetchApp class are part of Google Apps Script - a javascript-based server-side scripting language that allows you to extend Google Apps products like Docs, Sheets and Forms with custom functionality. UrlFetchApp class is NOT available in client-side

“Service Error: Spreadsheets” Error - Google Script Issue with Protection Class

核能气质少年 提交于 2020-02-19 07:08:37
问题 I've got a sub function in a project that I use to copy protections as a sheet is duplicated. This has worked for months without issue. I'm suddenly getting an error "Service Error: Spreadsheets" when I run it. I know it worked without issue on Sunday and there has been no changes to the code. With a series of Logger statements I know the error occurs on the line var p = sheet.getProtections(SpreadsheetApp.ProtectionType.SHEET)[0]; I've done some testing and it appears that most of the

“Service Error: Spreadsheets” Error - Google Script Issue with Protection Class

蓝咒 提交于 2020-02-19 07:06:10
问题 I've got a sub function in a project that I use to copy protections as a sheet is duplicated. This has worked for months without issue. I'm suddenly getting an error "Service Error: Spreadsheets" when I run it. I know it worked without issue on Sunday and there has been no changes to the code. With a series of Logger statements I know the error occurs on the line var p = sheet.getProtections(SpreadsheetApp.ProtectionType.SHEET)[0]; I've done some testing and it appears that most of the

How do I get a string value of the 5 digit serial date format from a cell into my script?

我怕爱的太早我们不能终老 提交于 2020-02-16 10:31:27
问题 I have a formula in a cell that is doing a vlookup to another sheet by combining the values of two cells on my spreadsheet. It's a table of names on the left and dates up top. I'm combining the name and date values into a single string value and using that as by vlookup key value, which works great. Now I need to basically do the same thing in my google script, but the date value has me at a loss. In the vlookup cell formula, the date value is the 5 digit date serial code. However when I

How do I get a string value of the 5 digit serial date format from a cell into my script?

送分小仙女□ 提交于 2020-02-16 10:30:14
问题 I have a formula in a cell that is doing a vlookup to another sheet by combining the values of two cells on my spreadsheet. It's a table of names on the left and dates up top. I'm combining the name and date values into a single string value and using that as by vlookup key value, which works great. Now I need to basically do the same thing in my google script, but the date value has me at a loss. In the vlookup cell formula, the date value is the 5 digit date serial code. However when I

sheet.getProtections no longer works?

拥有回忆 提交于 2020-02-09 06:01:32
问题 I have a script that automatically protects a range of past Dates in my Sheet. I use the standard sheet.getProtections(SpreadsheetApp.ProtectionType.RANGE); It worked fine for several months but it has not worked since yesterday. Is there any modifications on the implementations ? Thank you PS : the sheet object is well returned in my tests var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("TRAVAUX"); var debug = sheet.getName(); var protections = sheet.getProtections

createFile() in google Apps Script is not functioning properly

谁都会走 提交于 2020-02-08 09:20:19
问题 I am trying to create a file. It works fine when I run the following code segment from the debugger in apps script. However, when I run it real time from the spreadsheet, it says I do not have permission to call createfile. Everything that is logged is identical. The issue is not I do not have authority as I am the only one in the spreadsheet and am the owner. The purpose of the CSV is to move it from my google drive into data for BigQuery function saveAsCSV(row) { //Doc to Csv //row = 3; /

Close dialog when both dialog and custom sidebar are present

六月ゝ 毕业季﹏ 提交于 2020-02-08 03:18:16
问题 I'm having trouble with the google.script.host.close() command in that it is closing my sidebar rather than the dialog. function clickWeek() { setWeekColor('week', '#7FFF00'); setMonthColor('month', '#d6d6c2'); setPressColor('press', '#d6d6c2'); setAllDataColor('allData', '#d6d6c2'); google.script.run.withSuccessHandler(google.script.host.close).weekAheadCreate(); } The dialog is opened from the top of the weekAheadCreate() fucntion as per below: var htmlOutput = HtmlService .createHtmlOutput