google-apps

google apps script - batch setValues() on Sheet

烂漫一生 提交于 2019-12-25 03:04:05
问题 In order to optimize my code, I'm trying to do the batch updates. Instead of calling setValues() on the loop, I want to store the data in an array, then do an setValues() once after the loop. However, I can't make it work: var tempValuesArr= []; var ctr = 0; for ....{ //there is only one row needed for every second sheet, get the data at the 2nd //row with 6 columns var secondSheetRange = secondSheet.getRange(2, 1, 1, 6); tempValuesArr.push(secondSheetRange.getValues()); ctr++; } //finally,

Spreadsheet.flush is not working properly on my Google Apps Script

守給你的承諾、 提交于 2019-12-25 01:18:08
问题 Here are my 2 spreadsheets: Gsheet1: Googlesheet for replication (only employee # and employee name would change) Gsheet2: Config sheet (contains the employee #, employee name, replication status, pubHTML link) that would feed employee # and employee name on Gsheet1 So I have this code that have these functionalities below: Replicate Gsheet1 depending on the number of employees (I currently have 800+ employees) on Gsheet2 and dump it to a google drive folder. after replication, will set a

Custom Extensions on Managed Chromebooks

怎甘沉沦 提交于 2019-12-24 16:32:21
问题 I am a developer looking for the best way to set up different schools with their own custom, private extensions (ie School A should be the only one with access to Extension A). Theoretically, I am aware that there are a few ways to get a custom, private extension pushed out on a domain: Host the .crx on a server and click "Specify a Custom App" in the management console. Create a Domain App by uploading a zip to the Chrome Web Store Upload the extension from my developer account to the Chrome

Google Custom Login Page: Client Login Deprecated

白昼怎懂夜的黑 提交于 2019-12-24 14:21:02
问题 I have been successfully able to run a Custom Login Page for Google Apps until today. I used to use Client for the Google Apps Provisioning service. using which we could send email (username) and password as parameters and obtain the authentication token. With OAuth2 (as per Google we need to upgrade to OAuth2 starting 20th April, 2015) I can't find a solution! There's no way I can send/ check if a username/ password pair is correct. 回答1: There is no way now to do what you want. You could use

google doc script, attributes (bold, italics, underline) not shown in log

会有一股神秘感。 提交于 2019-12-24 12:50:28
问题 i want to create a script to capitalize sentences in a google doc, but without changing existing attributes in certain words. for example, in a google doc, there would be several paragraphs, with each paragraph having several sentences. in such google doc, there would be hyperlinks, words in boldface, words in italics, words with underline, etc. i want all of these attributes to stay intact; the script should only capitalize the sentences, without removing the existing attributes for these

Google Apps Script Quota

只谈情不闲聊 提交于 2019-12-24 12:24:54
问题 I'm running an Apps Script that changes rows in a Google Sheet through URL access, deployed as a web app. Something like macroUrl/?sheet=SheetName&key=KeyName&value=ValueName . This works perfectly for what I need it but I'm unsure on the quotas imposed on it. Really all I'm doing is using the doGet and doPost functions in the script to grab/push rows to the sheet, however I foresee myself possibly accessing it upwards of 50k times per day. I'm unsure how to test for the max number of

Insert Image Link from Google Drive into Google Sheets After Uploading an Image via Web App

南笙酒味 提交于 2019-12-24 11:23:52
问题 To preface, I'm super new to programming in general, nevermind javascript. I'm developing a web application where a user can upload a picture by clicking on a button. This action will upload pictures into a certain directory in my google drive with a unique folder and name. Now, I'm trying to copy and paste the google drive link of a picture any time it has been uploaded. I am able to successfully get the ID of the picture URL in my getFileUrl() method. But when I call that method within my

Why Isn't Google Apps Email Address Receiving Email From Magento Website?

血红的双手。 提交于 2019-12-24 05:55:05
问题 Ok, I've been working with this Magento 1.7.0.2 website: http://www.kharmakhare.com There are two forms currently on the website. If I change either form to any kharmakhare.com email address, the email is never received. If I change either form to my email address, I get the email just fine. Yes, I HAVE checked spam. The Kharma Khare email address will not receive emails from Magento. I thought it had to do with the Google Apps not being installed correctly... except when I logged into the

Google Global Address List for Domain limited to 250 results

ぃ、小莉子 提交于 2019-12-24 01:16:28
问题 I'm trying to query Google Global Address List for a specific domain, being led by this answer here (Specifically the answer by Jay Lee). It's all well and good and works perfectly in Google's OAuth Playground, however it seems to be limited to 250 users. Given that this feature seems completely undocumented, and that I can't tell by looking at their github repo (specifically this file), does anyone know how to query for the next 250 users or how to set the number of results? Thank you! 来源:

Google calendar API update “Missing end time”

瘦欲@ 提交于 2019-12-23 15:45:02
问题 I'm trying to update an event using: PUT https://www.googleapis.com/calendar/v3/calendars/primary/events/q4es0o2o70naq8idj1dj6q4354 { "reminders" {"useDefault":true}, "summary":"updatedsummary", "description":"updated desc" } but get a response: { "error": { "errors": [ { "domain": "global", "reason": "required", "message": "Missing end time." } ], "code": 400, "message": "Missing end time." } } Why do I need a end time if I just need to update a summary or other fields? 回答1: PUT https://www