All Questions
Tagged with googlescript or google-apps-script
56,957 questions
0 votes
1 answer
48 views
Prevent a new tab from opening when opening WhatsApp from Googlesheet OnEdit
as per below code, from GoogleSheet, I wanted WhatsApp to open with some specific text ready to be sent when user sets a cell to "Ready to Print". The problem is every time a column in ...
0 votes
0 answers
31 views
Google Script Cannot Fetch Users With Licenses (Via SKU ID)
I have recently gotten into Google Scripting to manage a School's IT space. I am currently working on a script that should check any students who have left and remove their paid licenses. However, I ...
2 votes
1 answer
89 views
GmailApp.sendEmail not working when rows arre added to Google sheet
I have an application (running on an IoT Boron device from Particle) that posts error messages to a Google sheet via a Webhook Web Form. The sheet serves as a log of application faults and this has ...
1 vote
1 answer
53 views
Copy and paste with .getValues / .setValues, but clearing the array inbetween
I have a table which looks like this: I want to copy the first two columns of data and insert them before the EOF, but empty them before the paste. The end result should look like this: So far, my ...
-2 votes
1 answer
37 views
Generate PDF won't render images [closed]
I am trying to create a simple Invoice generator that includes our company logo, but the logo will NOT render in the final PDF. I am designing the invoice template using HTML instead of a Google Doc ...
0 votes
1 answer
60 views
Google Cloud log-based alert policy not triggering any incidents
I’m having trouble getting a log-based alert policy to work in Google Cloud Monitoring. I can see the logs in the Logs Explorer and the filter seems to match correctly, but the alert never triggers ...
0 votes
1 answer
67 views
How to apply cell background color as Theme color in google sheets via apps script?
Hopefully, the title is clear. What I am NOT asking. How to update the cells background color to match the Theme via hex color code. How to update the spreadsheet theme colors themselves via appscript....
0 votes
1 answer
59 views
How replace the content of the active document?
I’m building a Google Docs add-on using React + Google Apps Script (via clasp). From the sidebar, I receive a .docx file as a Base64 string (binary content). I can successfully convert the .docx to a ...
1 vote
3 answers
143 views
Comparing multiple flags at once
I have a script which checks the value of a series of flags before deciding on an execution pathway. Because of the way the script executes, the flag values are held as script properties, therefore ...
Advice
0 votes
4 replies
57 views
Slides Add-On accessing Sheets Data and Narrowing Scopes
I have an Add-On under review in the Google Marketplace. My Add-On runs in Google Slides and needs to access Google Sheets data to create various visuals in Slides. Specifically my Add-On pulls data ...
0 votes
1 answer
73 views
Filter in Filter or Query/array for multiple sheets
I'm a long time reader, first time poster. I'm having a problem showing invoice details for each company id for this sheets. https://docs.google.com/spreadsheets/d/1iTJ8PR3snsbZKh01-...
3 votes
0 answers
57 views
Google Drive Add-on homepage renders twice when onItemsSelectedTrigger is present and no items are selected
I'm developing a Google Workspace Add-on for Google Drive and have run into a strange rendering bug. When my add-on is opened in the Drive sidebar, the card generated by my homepageTrigger function is ...
Best practices
0 votes
4 replies
69 views
Handling Multiple Sheet Inputs
I have a spreadsheet that receives data inputs externally. That data is used by sheet formulas to calculate an output which is then collected via an HTTP request. What is the best way to allow google ...
0 votes
1 answer
85 views
Checkbox behavior
So as per previous suggestions, I'm using checkboxes to replace the .getUi method so my project will work properly on mobile devices. I've come across a strange scenario and I wanted to confirm this ...
2 votes
1 answer
74 views
Stacked column chart to use column A as header in App Script
I have this table and the chart I want as below: To acheive this I have to switch rows/columns, and use column A as headers. However I cannot find the corresponding command for the checkbox "Use ...