google-apps-script

Google Apps Script: Comparing Arrays for Unique Values

余生颓废 提交于 2021-02-08 10:53:39
问题 I'm working from the solution provided HERE to compare two arrays. The example provided returns values found in both arrays to Array1 ( same ) and values only found on one or the other two Array2 ( diff ). ISSUE: When I apply it to my own script, valuesDATA returns nothing and valuesCheckSeeding returns ALL values from both arrays DESIRED RESULT: I have two arrays that I'd either like to create a third out of, or only select values from the first array, valuesDATA which are NOT present in the

How to avoid duplication when exporting from Google Sheets to Firebase

非 Y 不嫁゛ 提交于 2021-02-08 10:53:37
问题 I'm trying to export data from Google Sheets to a collection in Google Firestore. I'm using script editor in Google Sheets to write the code. I've successfully transferred the data to Firestore. However, if I add new data to the Google Sheet and try to export to Firestore all of the data that was already in Firestore duplicates. How can I have the code only add new data and not add everything when I export? //Create a menu item for 'Export to Firestore' function onOpen() { SpreadsheetApp

How to avoid duplication when exporting from Google Sheets to Firebase

放肆的年华 提交于 2021-02-08 10:52:39
问题 I'm trying to export data from Google Sheets to a collection in Google Firestore. I'm using script editor in Google Sheets to write the code. I've successfully transferred the data to Firestore. However, if I add new data to the Google Sheet and try to export to Firestore all of the data that was already in Firestore duplicates. How can I have the code only add new data and not add everything when I export? //Create a menu item for 'Export to Firestore' function onOpen() { SpreadsheetApp

login and fetch url Google Apps Script

久未见 提交于 2021-02-08 10:49:42
问题 I am trying to fetch data from this website into my google spreadsheet using Google Apps Scripts: https://net.statev.de/#/pages/buisness/storage/5aec8c9a3b82972b99e741c6 And need to login here first: https://net.statev.de/#/login This is the function i came up with: function fetch() { var loginURL = 'https://net.statev.de/#/login'; var dataURL = 'https://net.statev.de/#/pages/buisness/storage/5aec8c9a3b82972b99e741c6'; var loginPayload = { 'email':'testmail', 'password':"test", }; var

Form redirecting in new google sites

走远了吗. 提交于 2021-02-08 10:47:39
问题 I created a form using the app script. In the html file I have the below; <form name="Subscribe-to-Central" id="Subscribe-to-Central" action="https://script.google.com/macros/s/key/exec" method="POST" onsubmit="myFunction()"> Inputs .. </form> <script> function myFunction() { alert("Successfully subscribed. Please press okay to return to the home page"); window.open("URL", "_top"); } </script> The form is working good at which sending the date to the attached sheet and also redirecting to the

Split, reorder, concat inline

ぐ巨炮叔叔 提交于 2021-02-08 10:45:31
问题 I want to split a cell, reorder the pieces and recombine. How do I do that inline? For example: | name | reordered name | | Page,Larry | Larry Page | | Brin,Sergey | Sergey Brin | How can I do this? I know that: =SPLIT(A2, ",") will split the values into the next two columns and I know that I can concatenate values with: =CONCATENATE(A2, " ", B2) How do I bring these things together in a single formula? Can I access the values from SPLIT and reorder them? I know I can do: =CONCATENATE(SPLIT

Form redirecting in new google sites

笑着哭i 提交于 2021-02-08 10:45:21
问题 I created a form using the app script. In the html file I have the below; <form name="Subscribe-to-Central" id="Subscribe-to-Central" action="https://script.google.com/macros/s/key/exec" method="POST" onsubmit="myFunction()"> Inputs .. </form> <script> function myFunction() { alert("Successfully subscribed. Please press okay to return to the home page"); window.open("URL", "_top"); } </script> The form is working good at which sending the date to the attached sheet and also redirecting to the

Split, reorder, concat inline

孤街浪徒 提交于 2021-02-08 10:40:35
问题 I want to split a cell, reorder the pieces and recombine. How do I do that inline? For example: | name | reordered name | | Page,Larry | Larry Page | | Brin,Sergey | Sergey Brin | How can I do this? I know that: =SPLIT(A2, ",") will split the values into the next two columns and I know that I can concatenate values with: =CONCATENATE(A2, " ", B2) How do I bring these things together in a single formula? Can I access the values from SPLIT and reorder them? I know I can do: =CONCATENATE(SPLIT

Different Google Form Urls (How to find the linked “Form Responses” sheet) in a large Spreadsheet?

泄露秘密 提交于 2021-02-08 10:38:39
问题 One Google Spreadsheet has several sheets, some of them linked to the Google Forms. I tried to use this example but I couldn't find the linked sheet. In one case it shows the link to the form without any domain, but sheet.getFormUrl() returns the link with a domain and with another form's ID! When I used that link it was replaced in the browser on first link (without domain). In this case how to find the linked sheet and why links are different?! I have onFormSubmit Event handler (on Form

Different Google Form Urls (How to find the linked “Form Responses” sheet) in a large Spreadsheet?

我的梦境 提交于 2021-02-08 10:36:14
问题 One Google Spreadsheet has several sheets, some of them linked to the Google Forms. I tried to use this example but I couldn't find the linked sheet. In one case it shows the link to the form without any domain, but sheet.getFormUrl() returns the link with a domain and with another form's ID! When I used that link it was replaced in the browser on first link (without domain). In this case how to find the linked sheet and why links are different?! I have onFormSubmit Event handler (on Form