Is it possible to add a blank sheet to a google spreadsheet using sheets.spreadsheets v4? - google-sheets

The current api is https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.sheets/copyTo
This is a workaround because I have to first copy an existing sheet and then clear its content before making any use of it.
Google App Script has InsertSheet and it is missing in sheets v4 api.
Why would Google team decide not to do such a simple one?

Well, it was not straight forward.
However the answer is in batchUpdate for Sheet Operations
https://developers.google.com/sheets/api/samples/sheet#add_a_sheet

Related

I need to integrate Google cloud translation API to google sheets using macros

I Cant find any workable solution. Can anyone help? Need to make translate from 1st sheet in one doc to the second. About 60.000 changeable rows.
You can use the Google Translate function directly in your sheet
If you want more advanced/customized calls, I recently wrote an article where I use the current user credential and I call a Google Cloud API (not the translate, but the principle is the same)

Slicer in Google Sheets

I created a dashboard on Excel but want to move it to Google Sheets. How can I implement slicer like Excel on the spreadsheet?
I was using pivot in MS Excel with filters and slicers. I can replace slicer with some filters but in the spreadsheet, the filter isn't as handy as MS Excel and even dicer add-ons aren't functioning well. I am trying to replace it with data validation but that is making my dashboard extremely slow (Maybe because I can't find an efficient way). Can anyone suggest some combination of functions to create a slicer in Google spreadsheet? Any reading material recommendation regarding this?
For those who might land here after the question was originally answered:
Google Sheets now natively supports slicers.
Simply go to "Data" -> "Add a slicer" at the top menu.
See the documentation here: https://support.google.com/docs/answer/9245556
in Google Sheets, there are no Slicers but you can add an add-on to your Google Sheets called Dicers
see a demo here: https://www.youtube.com/watch?v=Uf9y4KZ3MAQ

Google sheets integration with Zapier: How to create a new spreadsheet based in a model

My workflow is the following:
When a new document is collected by my system I create a row in a Google Sheets to make a list.
I need to create a new Google Sheets when each row is created. And that Google Sheets must follow a specific template.
I tried to do that with Zapier and that works perfectly for blank sheets, however I need to use a template, I have formulas inside. The template is like this by the way.
Can someone help?
David here, from the Zapier Platform team.
I messed around with this a little bit and I don't believe it's possible using Zapier at this time. Because of the way our integration works, we need the headers available so we can place data.
I see that there's a "Create Column" action, which you might be able to use use in conjunction with a bunch of "create row(s)" actions, but I'm not positive it would work.
Sorry I don't have better news here. ​Let me know if you've got any other questions!

Has the Google Sheets Published URL Suddenly Changed to a Different Format?

Normally, when I use the Google Sheets API, I get a very predictable URL structure from the "Publish Sheet" menu option, that I use to extract the Spreadsheet ID with a regular expression and use it for other tasks on the Google Sheets API.
This has worked for years and is the way that Google's documentation recommends getting the Spreadsheet ID - from the URL.
e.g.
https://docs.google.com/spreadsheets/d/{MYSPREADSHEETID}/pubhtml
However, as of today, when publishing a spreadsheet, I now get a URL like this:
https://docs.google.com/spreadsheets/d/e/2PACX{BUNCH OF RANDOM CHARACTERS}/pubhtml
This breaks my code as the bunch of random characters that appears with 2PAC is not the spreadsheet ID and does not work with the API.
Does anyone know if this is an unannounced change to Google's URL structure or some kind of bug?
I have no idea when or why Google has decided to change their URL structure. The Google Sheets API Documentation states to pull the spreadsheet ID from the editing URL. Google Sheets API Documentation It seems unlikely to me that this is a bug of some kind, since this has been going on for a while, and to me, seems permanent.
The solution to this problem would be to pull the spreadsheet ID from the editing (or the sharing URL) URL itself instead of using the URL of the published sheet.
I hope Google fixes this issue as this affects consistency across their URLs but for now, the only way to retrieve the spreadsheet ID is to get it from the editing or sharing URLs.
Hope this helps! :)

How to Sync data from different Google Sheets to a Google master Sheet

I have Team of 15 people updating there data of call backs and other info in the Microsoft Excel
Now i want to use Google Sheets for Real time data. So i want all of them to use a Google Sheet and a Team leader should have the updates when ever they are updating the there own sheets. Everyone should have there own passwords to open there but an Admin should have access to all of there data in those sheets. I hope you understood my needs. I know its possible with Google Sheets but i don,t know how to prepare one as am new to this platform.
Please Help.
If you use
=importrange("sheet url", "range you want to import")
on a separate sheet, it will update dynamically as they change things - I have done this specifically with remote employees previously

Resources