Google Sheets Writeback
Who can use this feature?
The Google Sheets Writeback functionality can be used by those with the Builder subscription plan.
For more details, see our pricing comparison matrix.
The Google Sheets connector allows data to be imported from a Google Sheet into your Squirrel project at runtime. It also gives options for filtering and refreshing that data.
Add a Google Writeback Connector to your project by opening the CONNECTIONS drawer in the object browser, selecting Google Sheets from the dropdown box, and clicking the plus button:
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252FjT9FixHvA97aIm63km8s%252FGoogleWriteback_objectbrowser.png%3Falt%3Dmedia%26token%3D960b9b75-d8ed-4624-afac-c55a45e08b8c&width=768&dpr=4&quality=100&sign=6ff219b5&sv=1)
Google Sheets Read Properties
GOOGLE DRIVE
To connect to a Google Sheet, you will need to connect to a Google account.
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252F0HHIIR0Mi7i71rfSclWL%252Fgooglesheets_accounts.png%3Falt%3Dmedia%26token%3D1e9b5d96-df00-44cd-bad4-9f566c266a77&width=768&dpr=4&quality=100&sign=abc07907&sv=1)
Select a Google account or add a new one – click the dropdown to connect a Google account. After selecting New Account, a window will appear to enter your Google account details.
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252FPrW63sgdngsy52M2dHAh%252Fgooglesheets_newaccount_model.png%3Falt%3Dmedia%26token%3D9641cb37-d91f-45cb-b878-5c674a541c3d&width=768&dpr=4&quality=100&sign=36a0935c&sv=1)
After adding the account details, select your account in the dropdown and click Select a Document. A Google Sheets file explorer will appear where you can locate and select a sheet to import.
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252FVKcRZ3FFpJRyyiiUhGtT%252Fgooglesheets_selectfile_model.png%3Falt%3Dmedia%26token%3Da875f498-2514-434c-9754-68a144f0b336&width=768&dpr=4&quality=100&sign=ccbf04cb&sv=1)
Choose a sheet to import and click Select
Worksheet – This property is shown once a successful connection has been made between Squirrel and the Google Sheet. Squirrel extracts the names of the worksheets from the Google Sheet and lists them in the dropdown box. Select a worksheet to import data from.
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252FQSi7OzZ30W8syCqF8YgY%252Fgooglesheets_selectsheet_modal.png%3Falt%3Dmedia%26token%3Db137e830-1d0c-49c3-9dc4-90a26b1020de&width=768&dpr=4&quality=100&sign=a9d11cce&sv=1)
Once you have selected the sheet that contains the data you want to load, a new property drawer will appear.
WRITEBACK
A radio with three options will appear under the WRITEBACK drawer.
Insert - bind to a range that will be added to the bottom of an existing range in the Excel sheet
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252FcTVvlQ9pGbsIqkb6sYVT%252FWriteback_Insert.png%3Falt%3Dmedia%26token%3D29245d92-820c-4fc0-b4b9-61d457cdc52a&width=768&dpr=4&quality=100&sign=1eb14366&sv=1)
Update - bind to a range that updates the first row that matches the condition set below. Insert manually or bind to a cell that contains the column letter reference and the value to match to determine the row.
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252FDCJkeSOk2Lji8dprrKGT%252FWriteback_Update.png%3Falt%3Dmedia%26token%3D76a76f38-5f85-4892-beae-bc4a80542635&width=768&dpr=4&quality=100&sign=78c37e1d&sv=1)
Upsert - bind to a range that updates the first matching row; if the row cannot be found then it adds the row to the bottom of the range.
![](https://learn.squirrel365.io/~gitbook/image?url=https%3A%2F%2F911720298-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FkLBGzn2hXrIMe50klQCv%252Fuploads%252FWXPrqD0ulLFBeVVWLHXN%252FWriteback_Upsert.png%3Falt%3Dmedia%26token%3D8856f204-1390-4fd7-8e6a-824376ab4ab9&width=768&dpr=4&quality=100&sign=2ab79a&sv=1)
USAGE
The USAGE drawer of the properties panel allows for some control over how and when the data is refreshed. If the Google Sheets connector is to a Google Sheet that is constantly being updated, then it may be useful to have the Squirrel project update the imported data at regular intervals or in response to triggers in the Squirrel project.
Refresh on load – This is the default setting and means that the Squirrel project imports the data from the Google Sheet on the project load. Unchecking it will mean that one of the other usage properties will need to be checked for the data to be imported.
Refresh on interval – Check this file to set a recurring interval. The Squirrel project will import the data from the Google Sheet after each interval. The interval value is measured in seconds, setting it to 30 will ensure that the Squirrel project will pull the data from the Google Sheet every 30 seconds.
Refresh on cell change – Bind to a cell that will have its content updated during runtime. This could be caused by the user interacting with a control, input from a data mover function, or the result of a calculation, etc.
Last updated