Skip to content
Advertisement

Tag: google-apps-script

UrlFetchApp.fetch() skip on empty cell

I’ve written a script that gets an image url from a cell in Google Sheets and adds that image to a template in Google Docs. However, when the cell is empty, the script crashes: Really new to programming and would appreciate anyones help as to how to prevent the above code from crashing in the event a cell is empty

use an array from Google Sheets to create a data list in html that can be served to a Google Apps Script for Autocomplete a Text Input

I have been struggling for a couple days to build a simple interface for my colleagues to record every customer interaction. They will input the following: Name of Customer (Autocomplete feature, from a superset of all names in a column in the spreadsheet) Date of Interaction Summary of the Interaction Prospects (Hot, Warm, Tepid, Cold) My problem is in getting

How to get text after the 9th occurrence of a character using javascript?

I got the following string: NPA-Woodburn,OR,Woodburn,OR,97071,Bensenville,IL,60106,150.00,0.00,cash/certified funds,,enclosed,operable,,,,, I need to loop through some rows and sum the 9th text after “,”, but I just can’t get to it. I’ve seen many combinations of solutions, but none gets me there. Thank you. Answer You can split the string by that character, remove all items in the array before the 9th item

Advertisement