google-apps-script

Why won't append row work with array?

十年热恋 提交于 2020-02-05 04:19:05
问题 I am trying to insert a row to the bottom of a sheet, but instead of my values I see text similar to what happens when you try to print an array in Java. I checked to see if the array is made correctly with logger and it has the values I want. var name = e.range.getRow() + SpreadsheetApp.getActiveSpreadsheet().getName(); var array = e.range.getValues().concat(name); Logger.log(array.toString()); masterSheet.appendRow(array); array contains a timestamp, string1, string2, and finally the name I

Are the csv files generated with parseCsv stored somewhere?

寵の児 提交于 2020-02-05 04:00:07
问题 I'm doing a web in google script. I have done the following search method: https://script.google.com/macros/s/AKfycbzxWqtu9bIhTXb2zP9fsOoFFqe3St1T1C91ZDVu747GCWxrR1c/exec my code Codigo.gs is: function doGet(e) { Logger.log(Utilities.jsonStringify(e)); if(!e.parameter.page){ return HtmlService.createTemplateFromFile("Index").evaluate(); } var template=HtmlService.createTemplateFromFile(e.parameter.page) template.action=ScriptApp.getService().getUrl(); return template.evaluate(); return

How can I bypass “Sign in with Google temporarily disabled for this app” in a Google Sheets script?

烂漫一生 提交于 2020-02-05 03:36:22
问题 I'm attempting to use a script in a google sheet I've used in the past, and suddenly while trying to make a new sheet with this code, I'm getting a new error that is seemingly impossible to bypass. "Sign in with Google temporarily disabled for this app This app has not been verified yet by Google in order to use Google Sign In." Normally , or at least every time I have used this script in the past, there has been an "advanced" and "continue anyway" option. "This app isn't verified yet

Passing value of a selection from Dynamic Dropdown List in HTML form created from a separate Google Sheet using Google App Script

家住魔仙堡 提交于 2020-02-04 20:42:11
问题 I am unable to Pass the value of a selection from the Dynamic Dropdown List in HTML form created from a another Google Sheet within same file using Google App Script. I am a newbie and make Google Sheets to automate / organize my daily workflow for personal use. I take help from videos / scripts from other users through internet & edit them to achieve my objective. I am developing a small Google Sheet for one of my close friend so that to create a Client List in Google Sheet for his startup

Google Apps Script not verified ( without advanced option)

偶尔善良 提交于 2020-02-04 20:42:08
问题 Things fare fine for the first two days. I do not remember doing anything special to my account, but suddenly all of the app script (either bound script or standalone one) is disabled because it "has not been verified yet by Google". And the scripts I have been trying to run are just some simple ones like getName() or getData(). Anyone can help? I can not continue the course unless this issue can be solved. Much appreciated for the help in advance. enter image description here 来源: https:/

Google App Script setTimeout Function problem

爷,独闯天下 提交于 2020-02-04 06:42:05
问题 I have a typical Google App Html form that records the data entered in a spreasheet. Here are the files. HTML Form: <!DOCTYPE html> <html> <head> <base target="_top"> <?!= include("css");?> </head> <body> <h2>Feedback Form</h2> <div id="message"></div> <!--- BUTTON New registration ---> <br /><input id="button-responder" type ="button" value = "New registration" onclick="submitResponder('button-responder'), submitTransition('message');" style="display:none;" /> <!--- FORM ---> <form id="my

How do you copy a range and paste only rows with values into another sheet?

删除回忆录丶 提交于 2020-02-04 05:27:24
问题 Let me preface this by saying I realize the simple solution is to filter the column/uncheck blanks, copy, and paste values into the new column. The problem is that with teachers who aren't "tech savvy", nothing is simple. With that said, I'm pulling data from multiple sheets in the same google spreadsheet into the "Master" sheet. I have a custom menu item called "Visibility" to hide/show the empty rows. After the rows are hidden, the teacher clicks the "Copy Data" button to copy A1:A to

How to copy format and values, not formulas, when creating a spreadsheet backup in Google Apps Script?

拜拜、爱过 提交于 2020-02-04 04:16:11
问题 The goal is to create frozen backups of a spreadsheet with multiple sheets. The backup spreadsheet needs to copy over values and format, but not the formulas. Some of the sheets have =IMPORTRANGE , which becomes a problem if the spreadsheet is copied first and then the values copied over the same range, again, to get rid of formulas, because the new spreadsheet requires access to the imported range in the middle of the function (which leads to #REF in A1). This question was clearly asked many

getting “This app isn't verified” for Google Sheets script that only touches my sheet

末鹿安然 提交于 2020-02-04 00:06:09
问题 I'm working on a Google Sheets script that I'm only intending to access data in the same spreadsheet that the .gs file is associated with. It seems like I should have permission to run a script in my own spreadsheet, but whenever I run a function, I get a This app isn't verified message. How do I bypass this? I've already enabled the Google Sheets API in both Advanced Google Services and the API Console. Am I wrong in assuming that if I create a spreadsheet and create an add-on that modifies

getting “This app isn't verified” for Google Sheets script that only touches my sheet

假装没事ソ 提交于 2020-02-04 00:06:08
问题 I'm working on a Google Sheets script that I'm only intending to access data in the same spreadsheet that the .gs file is associated with. It seems like I should have permission to run a script in my own spreadsheet, but whenever I run a function, I get a This app isn't verified message. How do I bypass this? I've already enabled the Google Sheets API in both Advanced Google Services and the API Console. Am I wrong in assuming that if I create a spreadsheet and create an add-on that modifies