google-apps-script

Catch Google App Script Quotas and Limitations errors

旧街凉风 提交于 2021-02-20 19:14:12
问题 I have an google app script for Google Sheets. Recently I came across "Script runtime" limitations when my function was inserting data into a spreadsheet over 6 min. My modal window just hung and in the Dev Console I got “Exceeded maximum execution time”. After some researching I figured how to re-implement my function so it would execute in batches and less likely hit the limit. However, at this point I would like add some logic to my script which could centralized catch this limitation and

Catch Google App Script Quotas and Limitations errors

依然范特西╮ 提交于 2021-02-20 19:12:00
问题 I have an google app script for Google Sheets. Recently I came across "Script runtime" limitations when my function was inserting data into a spreadsheet over 6 min. My modal window just hung and in the Dev Console I got “Exceeded maximum execution time”. After some researching I figured how to re-implement my function so it would execute in batches and less likely hit the limit. However, at this point I would like add some logic to my script which could centralized catch this limitation and

How to detect edits from multiple spreadsheets [closed]

柔情痞子 提交于 2021-02-20 05:01:54
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 months ago . Improve this question I have the below functions that handle recording of changes to a change log when edits are made to a particular spreadsheet Instead of monitoring changes to a single spreadsheet I would like to monitor changes to multiple spreadsheets (as array). How do I

Copy non-empty range into new sheet, and drag down formulas

∥☆過路亽.° 提交于 2021-02-20 03:52:03
问题 I want to copy all the non-empty cells in columns A/B from sheet "Consolidation Sheet" and then paste these cells into the sheet "Inputs for Web App" into columns H:I (always starting from the top, rather than appending them as new rows, since these values will be updated constantly). Then I basically want to drag down all of the formulas in the other columns (A through G) all the way down to the last row pasted. Format column I as a date. I'm not sure if I need a loop to do this or just an

Copy non-empty range into new sheet, and drag down formulas

拟墨画扇 提交于 2021-02-20 03:49:16
问题 I want to copy all the non-empty cells in columns A/B from sheet "Consolidation Sheet" and then paste these cells into the sheet "Inputs for Web App" into columns H:I (always starting from the top, rather than appending them as new rows, since these values will be updated constantly). Then I basically want to drag down all of the formulas in the other columns (A through G) all the way down to the last row pasted. Format column I as a date. I'm not sure if I need a loop to do this or just an

Pagination Loop Google Script

喜你入骨 提交于 2021-02-20 03:47:53
问题 I'm a total novice and have come up with the following Google Script to send a GET Request and then parse the response into a Google Sheet. I am only able to request 50 items on the first page and I have tried to search for a way to loop pages until I get all of the data that I requested. I'm sure this is pretty easy if somebody could point me in the right direction? :-) function myData1() { // Call the horizon API var url = "https://apc.hypaship.com/api/3.0/Orders.json?datefrom=27-03-2018T00

Pagination Loop Google Script

我与影子孤独终老i 提交于 2021-02-20 03:47:03
问题 I'm a total novice and have come up with the following Google Script to send a GET Request and then parse the response into a Google Sheet. I am only able to request 50 items on the first page and I have tried to search for a way to loop pages until I get all of the data that I requested. I'm sure this is pretty easy if somebody could point me in the right direction? :-) function myData1() { // Call the horizon API var url = "https://apc.hypaship.com/api/3.0/Orders.json?datefrom=27-03-2018T00

Apps Script API returning 404 error for existing project. Error returned as HTML rather than JSON

耗尽温柔 提交于 2021-02-20 00:43:10
问题 I was attempting to run an Apps Script function using the Apps Script API. I set up the script in the console, and created an oauth client ID for the script. I configured the authorisation screen and deployed the script as API executable. I tested the api function calling in the same script but got a 404 error saying: The Requested URL /v1/scripts/{{my_script_id}}:run was not found on this server. The response came back as HTML. I also noticed that the script seems to make it's own client ID

Apps Script API returning 404 error for existing project. Error returned as HTML rather than JSON

假如想象 提交于 2021-02-20 00:41:30
问题 I was attempting to run an Apps Script function using the Apps Script API. I set up the script in the console, and created an oauth client ID for the script. I configured the authorisation screen and deployed the script as API executable. I tested the api function calling in the same script but got a 404 error saying: The Requested URL /v1/scripts/{{my_script_id}}:run was not found on this server. The response came back as HTML. I also noticed that the script seems to make it's own client ID

Apps Script API returning 404 error for existing project. Error returned as HTML rather than JSON

*爱你&永不变心* 提交于 2021-02-20 00:41:16
问题 I was attempting to run an Apps Script function using the Apps Script API. I set up the script in the console, and created an oauth client ID for the script. I configured the authorisation screen and deployed the script as API executable. I tested the api function calling in the same script but got a 404 error saying: The Requested URL /v1/scripts/{{my_script_id}}:run was not found on this server. The response came back as HTML. I also noticed that the script seems to make it's own client ID