Data Sources Blocks
Last updated
Last updated
The data sources blocks allow you to perform a variety of CRUD (Create, Read, Update, Delete) operations on records you have stored in Airtable, Google Sheets, Weblow, or a local table.
In this tutorial, we’ll demonstrate how to create data in a connected data source such as Google Sheets, Airtable, Webflow, or a local table.
Template app:
Click Copy Project in the upper right.
Copy of spreadsheet: Google Sheet - Thunkable Employee Directory
The create row in block allows you to append new rows to the end of your data tables.
The inputs are dynamic, so if you change the name of Column 1 or Column 2 in the data source, these changes will also be reflected in the block. You can only connect text and numbers to the create row in block.
There is a second create row in block which allows you to add a row in your data source using an object. The field is the column name and the cell info is the value you would like to set.
In this tutorial, we’ll demonstrate how to read data in a connected data source such as Google Sheets, Airtable, Webflow, or a local table.
Template app:
Click Copy Project in the upper right.
Copy of spreadsheet: Google Sheet - Thunkable Employee Directory
The get value from block allows you to read a value from a specific cell in your data table. You can specify the column name and the view in the block itself and pass the unique row id as an input.
The valid id types are index and unique id. The index refers to the row by its integer position (1 for the first row, 2 for the second row, etc.) and must be greater than zero.
The get row object from block returns the row object of the specified row ID. The row object can be used with Objects Blocks.
The get first row object from block returns the row object of the first row that meets the specified condition. You can specify the column name and condition in the block itself and pass the value as an input. The row object can be used with Objects Blocks.
The list of values in block allows you to read an entire column of data from a table and returns it as a list you can then manipulate with the List Blocks.
The number of rows in block returns an integer corresponding to how many rows are in a given data source.
The columns in block returns the column names of a data source
In this tutorial, we’ll demonstrate how to update data in a connected data source such as Google Sheets, Airtable, Webflow, or a local table.
Template app:
Click Copy Project in the upper right.
Copy of spreadsheet: Google Sheet - Thunkable Employee Directory
The update value in block allows you to modify or update an existing cell in your data source. The column name and view are specified in the block itself. The row id and new value are passed as inputs.
There is a second update row in block which allows you to update a row in your data source using an object. The field is the column name and the cell info is the value you would like to set.
In this tutorial, we’ll demonstrate how to delete data in a connected data source such as Google Sheets, Airtable, Webflow, or a local table.
Template app:
Click Copy Project in the upper right.
Copy of spreadsheet: Google Sheet - Thunkable Employee Directory
The delete row in block allows you to delete a row of data from your data source. The row id is passed as an input. If there is an error, the error message is passed as an output.
The delete all rows in block allows you to delete all rows in your data source. If there is an error, the error message is passed as an output.
The delete all rows in block is not available when Airtable is the connected data source.
The update filter for block allows you to edit the value for each condition within a specific view of your data source.