Google Sheets

LogicLoop can also read data from Google Sheets.

Integrate Directly with Google Sheets

Follow our integration guide to get your LogicLoop workspace connected with Google Sheets.

Reading your Google Sheet

Then, select Google Sheets from the data source dropdown in your new query, and simply add the Spreadsheet ID in the query text, which you will find in the URL https://docs.google.com/spreadsheets/d/{{ SPREADSHEET_ID }}/. This will get you all the data in the spreadsheet. You can refer to different sheets with SPREADSHEET_ID and PAGE.

If you'd like to do additional filtering or even write SQL against this data, use the Query Results datasource.

Legacy Option: Adding your Data Source

First, you'll want to create a new Google Sheets Data Source.

Please email support@logicloop.com so we can help you upload the JSON Key File needed to activate the Google Sheets source.

Share your Google Sheet with logicloop@logicloop-322519.iam.gserviceaccount.com

Setting up your own Google Cloud Project user

If instead of using our JSON file to connect to Google Sheets you would like to set it up yourself with your own Google Cloud Project, you first need to create a Service Account with Google. Service Accounts allow third-party applications like LogicLoop to read data from your Google apps without needing to log-in each time. During Service Account setup you will be provided with a JSON key file. You need to upload this file to LogicLoop when setting up the data source.

How to create a Google Service Account?

  1. Open the API Credentials Page. If prompted, select or create a project.

  2. Click the “Create credentials” button. On the dropdown that appears, chose “Service account key”.

  3. On the following page, use the dropdown to select the project you elected in step 1. For role select Project > Viewer from the tree menu.

  4. Under key type, select JSON and hit “Create”

A .json file will then download to your computer. In LogicLoop under Data Sources, add a new data source for GoogleSpreadsheet. In the modal that appears, name this connection and upload the .json file you downloaded from the Google credentials console.

Now, you can follow the instructions above to share your Google Sheet with your own service account id (instead of logicloop@logicloop-322519.iam.gserviceaccount.com) and create a rule to read your data in.

LogicLoop uses Python-datutil to parse dates from Google Spreadsheets. If you experience issues where LogicLoop parses the date incorrectly, try adjusting the date formatting in your sheet to ISO8601 or one of the formats shown here.

Last updated