Docs
Search…
Google Sheets
LogicLoop can also read data from Google Sheets. First, you'll want to create a new Google Sheets Data Source.
Please email [email protected] so we can help you upload the JSON Key File needed to activate the Google Sheets source.
Share your Google Sheet with [email protected]
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 as SPREADSHEET_ID|SHEET_NUMBER
If you'd like to do additional filtering or even write SQL against this data, use the Query Results datasource.

Setting up your own Google Cloud Project user

To set up your own Google Cloud Project to read from Google Sheets, 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. 1.
    Open the API Credentials Page. If prompted, select or create a project.
  2. 2.
    Click the “Create credentials” button. On the dropdown that appears, chose “Service account key”.
  3. 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. 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 [email protected]) and create a rule to read your data in.

A Note About Dates

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.