google-apps-script

HTML - “&” lost during evaluation process

我是研究僧i 提交于 2021-01-05 07:26:40
问题 This question is related to my previous post. I'm trying to "build" a link to a specific range inside a Sheet. So, I'm building something like this https://docs.google.com/spreadsheets/d/1XXXXXX/edit#gid=99999999&range=A2:D2 The build is working fine but when it runs through the template and evaluate process something is lost and the "&" turns into "%E2%A6%A5". Any thoughts? Edit1: Here's a minimal script snippet var link = 'https://docs.google.com/spreadsheets/d/XXXXXX#gid=999999' + "&" + "

How keep the Status keep appearing on JavaScript function to HTML

妖精的绣舞 提交于 2021-01-05 07:18:44
问题 This is a continuation of previous question I made in this forum. I made some changes in the code by adding else condition. What I'm trying to work out is to show the current status as the page loads. the current code shows the status only if the button get clicked. How can I get the current status appear as the page loads and the status get updated when button get clicked. CODE.GS function doGet(e) { return HtmlService.createHtmlOutputFromFile('Index'); } function checkStatus(notify) { var

Find and Replace text in entire Google Drive folder, headers, footers, google docs using a script

心已入冬 提交于 2021-01-05 07:17:27
问题 I have numerous Google Docs with a header and footer. Multiple links on our intranet to these documents exist so I don't want to make new documents. There are hundreds of documents to update. I need to update the physical address and header/footer letterhead in these documents. I need to copy the images, formatting, tables, etc in the header and footers too. I wish they were more like CSS or templates that could be changed across multiple documents at once. Multiple considerations have been

How can one write to a publicly available Google sheet (without authorization) in Python?

你说的曾经没有我的故事 提交于 2021-01-04 14:55:41
问题 I have full edit access to a Google Sheet not owned by me. I want to be able to write to the spreadsheet using Python without Google API authorization. I checked several available packages ( gdata , gspread etc.) and seems all of them ask for the credentials. I was also able to read the content of a spreadsheet without authorization using requests or pd.read_csv() by pandas (I tweaked the URL by changing the last part saying ... edit#gid= ... to ... export?format=csv&gid= ...). Yet, when

How can one write to a publicly available Google sheet (without authorization) in Python?

∥☆過路亽.° 提交于 2021-01-04 14:55:03
问题 I have full edit access to a Google Sheet not owned by me. I want to be able to write to the spreadsheet using Python without Google API authorization. I checked several available packages ( gdata , gspread etc.) and seems all of them ask for the credentials. I was also able to read the content of a spreadsheet without authorization using requests or pd.read_csv() by pandas (I tweaked the URL by changing the last part saying ... edit#gid= ... to ... export?format=csv&gid= ...). Yet, when

Cannot retrieve the next object: iterator has reached the end error when iterating over shared Drive

馋奶兔 提交于 2021-01-04 05:35:38
问题 Folder sharing does not work on Google Shared Drive, so I am trying to automate sharing through Google Apps Script. I tried to write code with reference to several examples, but I kept getting errors and asked questions. I got an error saying: 'Cannot retrieve the next object: iterator has reached the end', and I confirmed that sharing of some files was not set. Below is the code I wrote. How can I fix this problem? function myFunction() { var folderid = "" var folder = DriveApp.getFolderById

GMail Google Apps Script Plugin “The value returned from Apps Script has a type that cannot be used by the add-ons platform”

余生颓废 提交于 2021-01-04 04:36:22
问题 In the last 24 hours, a previously working GMail plugin I run has started failing. I stripped it all the way down to only trying to get the example from the docs working: var action = CardService.newAction().setFunctionName('composeEmailCallback'); CardService.newTextButton() .setText('Compose Email') .setComposeAction(action, CardService.ComposedEmailType.REPLY_AS_DRAFT); // ... function composeEmailCallback() { var thread = GmailApp.getThreadById(e.threadId); var draft = thread

GMail Google Apps Script Plugin “The value returned from Apps Script has a type that cannot be used by the add-ons platform”

廉价感情. 提交于 2021-01-04 04:28:43
问题 In the last 24 hours, a previously working GMail plugin I run has started failing. I stripped it all the way down to only trying to get the example from the docs working: var action = CardService.newAction().setFunctionName('composeEmailCallback'); CardService.newTextButton() .setText('Compose Email') .setComposeAction(action, CardService.ComposedEmailType.REPLY_AS_DRAFT); // ... function composeEmailCallback() { var thread = GmailApp.getThreadById(e.threadId); var draft = thread

GAS - Access Other User's Calendar ID

一笑奈何 提交于 2021-01-01 13:46:07
问题 I have a Google App for Business. Is it possible to access other user's calendar to input & retrieve event? I only know how to do it for my own calendar, but not others. I have super administrator access. 回答1: Yes, you can get any calendar by it's ID, and then just get the events. As per your comment I don't believe that it will allow you to get any calendar in the domain, you appear to need to be subscribed. Whether this is expected or not I'm unsure. Enter the Advanced Calendar Service,

Google Form responses to email

喜欢而已 提交于 2021-01-01 09:27:12
问题 I want to get email once the form is submitted with only the filled in responses but not the blank or empty fields. I have did some research and found the below script which triggers email immediately to the email address present in the form. Also the email contains all the fields including the empty fields. Please help me achieve a script which fulfills my requirement. function setup() { /* First, delete all previous triggers */ var triggers = ScriptApp.getProjectTriggers(); for (var i in