docs/versioned_docs/version-2.65.0/data-sources/google.sheets.md
ToolJet has the capability to establish a connection with Google Sheet for both reading and writing data. By utilizing OAuth 2.0, ToolJet can establish a secure connection with Google Sheet, ensuring that the application's access to a user's account is restricted and limited appropriately.
<div style={{paddingTop:'24px'}}>If you decide to self-host ToolJet, there are a few additional steps you need to take:
To establish a connection with the Google Sheet datasource, you can either click on the + Add new Data source button located on the query panel or navigate to the Data Sources page through the ToolJet dashboard.
When connecting to a Google Sheets datasource, you can choose between two permission scopes:
Using Google sheets data source you can perform several operations from your applications like:
:::info
Spreadsheet ID can be obtained from the URL of the spreadsheet. For example, in the URL https://docs.google.com/spreadsheets/d/1W2S4re7zNaPk9vqv6_CqOpPdm_mDEqmLmzjVe7Nb9WM/edit#gid=0, the 1W2S4re7zNaPk9vqv6_CqOpPdm_mDEqmLmzjVe7Nb9WM represents the spreadsheet ID.
:::
This operation allows you to retrieve the table data from a spreadsheet in the form of a JSON object.
Add additional rows to a table by using the append operation.
[
{
"name": "John",
"email": "[email protected]",
"date": "2024-09-16",
"status": "Confirmed",
"phone": "+123456789"
},
{
"name": "Jane",
"email": "[email protected]",
"date": "2024-09-17",
"status": "Pending",
"phone": "+987654321"
},
{
"name": "Doe",
"email": "[email protected]",
"date": "2024-09-18",
"status": "Cancelled",
"phone": "+112233445"
}
]
This operation allows you to update existing data in a sheet.
{
"id": "456",
"company": "ABC Tech Solutions",
"position": "Product Manager",
"url": "https://abctech.com/careers",
"date-applied": "2024-09-10",
"status": "Application Under Review"
}
This operation allows you to delete a specific row from the sheet.
This operation allows you to retrieve basic information about the spreadsheet, including the number of sheets, theme, time zone, format, and URL, among others.
<div style={{textAlign: 'center'}}> </div> </div>