google-spreadsheet-api

Unable to process the operation because it contains too much data. Google Apps Script

安稳与你 提交于 2019-12-08 11:12:50
问题 I have two sheets. First is data from JSON with max results 100 rows. It contains 8 columns. Second is the data I add manually and then write to the first sheet based on matched title. For example, if both titles match then create a new column "Category" in first sheet from second sheet. The second sheet contains 50 rows and 8 columns. When I run this script it throws error: We're sorry, we were unable to process the operation because it contains too much data. I tried to remove line by line

Maps.newDirectionFinder() Exceeded Daily Request Quota

◇◆丶佛笑我妖孽 提交于 2019-12-08 11:04:45
问题 I am using a GAS embedded into a Google spreadsheet to act as a mileage log. After the user enters their origin and destination, my script automatically calculates the distance and inputs it into the spreadsheet. It works perfectly, except half the time it tells me: {error_message=You have exceeded your daily request quota for this API. We recommend registering for a key at the Google Developers Console: https://console.developers.google.com/apis/credentials?project=_ , routes=[], status=OVER

Sharing authentication/token between Android Google Client API and SpreadSheet API 3.0

落花浮王杯 提交于 2019-12-08 10:02:31
问题 I have two modules in my project. The first is responsible for creating a folder and a spreadsheet in the google drive. The second is responsible for inserting rows in the spreadsheet. For the first module I am referring to the sample here. For Second module I am referring the examples here. Is there any way I can use the authentication done in the first module using the GoogleAPIClient in the second module without trying to authenticate again. Also for information the second module runs in

DocumentList API and GAS. How to marry them?

妖精的绣舞 提交于 2019-12-08 07:35:28
问题 How about using this API? developers.google.com/google-apps/documents-list It seems to be able to access the revision history feed. But the examples are in .NET. How do I apply/use this API in Google Apps Script? Anyone knows how and can shed some light? Maybe a short sample code? Thanks. 回答1: You need to look on the protocol for DocLists API. You can use this protocol alongwith URLFetch and Google oAuth Here is a quick example, which returns the revision history in json format //Get revison

How to update spreadsheet using Google Sheets API + Javascript

冷暖自知 提交于 2019-12-08 07:09:14
问题 I have a small javascript site that gets data from my google spreadsheet and shows this data to the end user. I also want to eventually update this spreadsheet (e.g. insert some rows), but I'm totally stuck with it. To retrieve data from the sheet I use this document. It also contains some information about updating spreadsheet, but I'm not sure if this works. I tried: jQuery $.post(...) to create a POST request as described in the document but without success) Create request using the

how to programmatically open a new spread sheet from google scripts

三世轮回 提交于 2019-12-08 07:07:15
问题 in setActiveSpreadSheet doc the example is very clear: // The code below will make the spreadsheet with key "1234567890" the active spreadsheet var ss = SpreadsheetApp.openById("1234567890"); SpreadsheetApp.setActiveSpreadsheet(ss); however implementing that inside my google scripts, nothing happens at all (not even an error message).. ideas? update Based on the answers below, it's clear that the above code has no effect on UI. I tried doing this: function goToEstimate(sheetId) { window.open(

Google Apps Application APIs: Is there a better way to find correspondance between a Documents List API Document and a Spreadsheets API Spreadsheet?

二次信任 提交于 2019-12-08 06:30:19
问题 There is a task, using the .NET library for the Google Data API, to traverse across Google Drive folders, find required spreadsheets and change data of the selected spreadsheets. Folders traversing is performed using the Google.GData.Documents.FolderQuery and other classes of the Google.GData.Documents namespace. After a correct document is found is necessary to manage it using the Google.GData.Spreadsheets.Spreadsheet class. Now I find a correspondence between the Google.GData.Documents

How to run custom function by hovering or clicking on cell in google spreadsheet?

只谈情不闲聊 提交于 2019-12-08 05:44:49
问题 I need help to make a table which will have a cells as product thumbnails and by hovering or clicking on this small image, I want to show the pop up with big image of product. ( Right now it works as hyperlink, but it is not enough ) I know we have a few ways how to run function right now: from a custom spreadsheet function from a trigger (from spreadsheet like on open, on edit or on form submit, or Time driven) from a custom menu (which must be created by e.g. on open) from a custom user

Google Sheets Number of columns

懵懂的女人 提交于 2019-12-08 04:50:47
问题 I want to read a sheet and i want to know it's dimensions (number of columns, number of rows). What is the easiest way to obtain these? From Get get = Sheets.getSheetsService().spreadsheets().values().get(spreadsheetId, sheetRange); I want to know the number of columns, that contain data, I don't want the actual size of the sheet, since there might be lots of empty cells. Is this possible in any way? 回答1: When you say you " don't want the actual size of the sheet, since there might be lots of

Read spreadsheet without knowing its range

夙愿已清 提交于 2019-12-08 04:49:58
问题 I would like to read a spreadsheet without knowing its range. Is that possible in C#? Or else I have to specify the range till the values are inserted in the sheet? These things are dynamic in my requirement. The range can be at any limit so my code need to read the entered data from my sheet. // Create Google Sheets API service. SheetsService SheetsService = GetSheetsService(); // Here is my doubt. // I have specified only the sheet name // but I dont know the range which could be dynamic