google-apps-script

Writing a setFormula() with a query formula

↘锁芯ラ 提交于 2021-02-10 18:20:47
问题 Good evening, I have a formula in a cell: =query(IMPORTRANGE("1O9JBXnSpnigfVpMqNHq6nHcaHb7VwdroDgzDqfnD8iM";"'Tableau detail'!$b$3:$c");"select Col2 where (Col1='"&'Feuille 1'!$E$12&"')") I would like to integrate it into a script with setformula (). I tried with this writing: formuleNombre.setFormula('=query(IMPORTRANGE("1O9JBXnSpnigfVpMqNHq6nHcaHb7VwdroDgzDqfnD8iM";"'Tableau detail'!$b$3:$c");"select Col2 where (Col1='"&'Feuille 1'!$E$12&"')")'); but it does not work :( I've this error :

Scheduling Google App Script function for specific recurring windows [duplicate]

倾然丶 夕夏残阳落幕 提交于 2021-02-10 17:53:32
问题 This question already has answers here : How to create a time-driven trigger that runs from 11 am to 2 pm? (2 answers) Closed 2 years ago . I'm trying to schedule an Apps Script function. I need the email to trigger Mon-Sat every 2 hours starting at 11am-9pm. I've written the following code to create triggers for each day: function createTriggers() { var days = [ScriptApp.WeekDay.MONDAY, ScriptApp.WeekDay.TUESDAY, ScriptApp.WeekDay.WEDNESDAY, ScriptApp.WeekDay.THURSDAY, ScriptApp.WeekDay

Invalid JSON Payload with Sheets.Spreadsheets.BatchUpdate

早过忘川 提交于 2021-02-10 17:50:35
问题 Trying to work with Sheets.Spreadsheets.Get and Sheets.Spreadsheets.Batchupdate. I'm trying to get pull formatting from one spreadsheet and paste that formatting to another. This is simply a proof of concept for further application. I get a JSON payload error with the following code and can't see to figure out how to format it to insert the Array. function Test() { //sheets[].data[].rowData[].values[].cellData.effectiveFormat.backgroundColor var TestArray = Sheets.Spreadsheets.get("1eAq

Scheduling Google App Script function for specific recurring windows [duplicate]

不打扰是莪最后的温柔 提交于 2021-02-10 17:48:57
问题 This question already has answers here : How to create a time-driven trigger that runs from 11 am to 2 pm? (2 answers) Closed 2 years ago . I'm trying to schedule an Apps Script function. I need the email to trigger Mon-Sat every 2 hours starting at 11am-9pm. I've written the following code to create triggers for each day: function createTriggers() { var days = [ScriptApp.WeekDay.MONDAY, ScriptApp.WeekDay.TUESDAY, ScriptApp.WeekDay.WEDNESDAY, ScriptApp.WeekDay.THURSDAY, ScriptApp.WeekDay

Scheduling Google App Script function for specific recurring windows [duplicate]

做~自己de王妃 提交于 2021-02-10 17:48:10
问题 This question already has answers here : How to create a time-driven trigger that runs from 11 am to 2 pm? (2 answers) Closed 2 years ago . I'm trying to schedule an Apps Script function. I need the email to trigger Mon-Sat every 2 hours starting at 11am-9pm. I've written the following code to create triggers for each day: function createTriggers() { var days = [ScriptApp.WeekDay.MONDAY, ScriptApp.WeekDay.TUESDAY, ScriptApp.WeekDay.WEDNESDAY, ScriptApp.WeekDay.THURSDAY, ScriptApp.WeekDay

Is there a way to get Google Sheets to default to a different tab each day?

半世苍凉 提交于 2021-02-10 17:26:46
问题 I have an MVC application that links to a Google Sheet doc via siteloader. It's loading great but defaulting to load the first tab in the sheets - working as designed obviously. Here's what I need to do: The tabs in this sheet are separated by date. So, for example, today's 8/22/20. The tab displays "SAT 082220." Tomorrow's tab will be "SUN 082320" and so on. I need siteloader to default to today's tab when the project loads. So basically it just needs to load the next tab in the list each

Is there a way to get Google Sheets to default to a different tab each day?

三世轮回 提交于 2021-02-10 17:26:01
问题 I have an MVC application that links to a Google Sheet doc via siteloader. It's loading great but defaulting to load the first tab in the sheets - working as designed obviously. Here's what I need to do: The tabs in this sheet are separated by date. So, for example, today's 8/22/20. The tab displays "SAT 082220." Tomorrow's tab will be "SUN 082320" and so on. I need siteloader to default to today's tab when the project loads. So basically it just needs to load the next tab in the list each

Is there a way to get Google Sheets to default to a different tab each day?

一个人想着一个人 提交于 2021-02-10 17:25:28
问题 I have an MVC application that links to a Google Sheet doc via siteloader. It's loading great but defaulting to load the first tab in the sheets - working as designed obviously. Here's what I need to do: The tabs in this sheet are separated by date. So, for example, today's 8/22/20. The tab displays "SAT 082220." Tomorrow's tab will be "SUN 082320" and so on. I need siteloader to default to today's tab when the project loads. So basically it just needs to load the next tab in the list each

Is there a way to get Google Sheets to default to a different tab each day?

无人久伴 提交于 2021-02-10 17:25:19
问题 I have an MVC application that links to a Google Sheet doc via siteloader. It's loading great but defaulting to load the first tab in the sheets - working as designed obviously. Here's what I need to do: The tabs in this sheet are separated by date. So, for example, today's 8/22/20. The tab displays "SAT 082220." Tomorrow's tab will be "SUN 082320" and so on. I need siteloader to default to today's tab when the project loads. So basically it just needs to load the next tab in the list each

Is there a way to get Google Sheets to default to a different tab each day?

青春壹個敷衍的年華 提交于 2021-02-10 17:25:09
问题 I have an MVC application that links to a Google Sheet doc via siteloader. It's loading great but defaulting to load the first tab in the sheets - working as designed obviously. Here's what I need to do: The tabs in this sheet are separated by date. So, for example, today's 8/22/20. The tab displays "SAT 082220." Tomorrow's tab will be "SUN 082320" and so on. I need siteloader to default to today's tab when the project loads. So basically it just needs to load the next tab in the list each