Integromat
  • Back to website
Articles in this section
  • Formstack
  • Magento 2
  • Google Cloud Vision
  • ManyChat
  • Airtable
  • Bubble
  • Email (legacy)
  • Facebook Groups
  • Google Sheets (legacy)
  • HTTP
See more
  1. Integromat Support
  2. Apps
  3. Docs

BigQuery

Integromat Support Team Integromat Support Team Updated January 13, 2021 14:11

The BigQuery modules enable you to monitor tables and completed query jobs, and create, retrieve, update, or delete datasets and tables in your BigQuery account.

Getting Started with BigQuery

Prerequisites

  • A Google account
  • A Google Cloud Platform project created

In order to use BigQuery with Integromat, it is necessary to have a Google account. If you do not have one, you can create a Google account at google.com.

The module dialog fields that are displayed in bold (in the Integromat scenario, not in this documentation article) are mandatory!

Connecting BigQuery to Integromat

1. Go to Integromat, and open the BigQuery module's Create a connection dialog.

2. Enter a name for the connection in the Connection name field, and click Continue.

After you click the Continue button, Integromat will redirect you to the Google website, where you will be prompted to grant Integromat access to your account.

2020-10-30_11_28_20-Sign_in_-_Google_Accounts.png

Confirm the dialog by clicking the Allow button.

Dataset

List Datasets

Retrieves all datasets in the specified project.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) you want to list the BigQuery datasets from.
Show All Enable this option to retrieve hidden datasets also.
Limit Set the maximum number of datasets Integromat will return during one execution cycle.

Get a Dataset

Retrieves dataset details.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) you want to retrieve dataset details from.
Dataset ID Select or map the ID of the dataset you want to retrieve details for.

Create a Dataset

Creates a new dataset.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) you want to create a dataset for.
Create Dataset ID Enter the dataset reference, without the project name. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Default Table Expiration Day The default lifetime of all tables in the dataset, in days. Once this property is set, all newly created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
Location Select the geographic location where the dataset should reside. 
Labels Add labels to the dataset if needed. You can use these to organize and group your datasets.
Description Enter a user-friendly description of the dataset.

Update a Dataset

Updates dataset details.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to update.
Dataset ID Enter (map) or select the dataset ID of the dataset you want to update.
Labels Specify labels. You can use these to organize and group your datasets.
Default Table Expiration Day The default lifetime of all tables in the dataset, in days. Once this property is set, all newly created tables in the dataset will have an expirationTime property set to the creation time plus the value in this property, and changing the value will only affect new tables, not existing ones. When the expirationTime for a given table is reached, that table will be deleted automatically. If a table's expirationTime is modified or removed before the table expires, or if you provide an explicit expirationTime when creating a table, that value takes precedence over the default expiration time indicated by this property.
Description Enter a user-friendly description of the dataset.

Delete Dataset

Deletes the specified dataset.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to delete.
Dataset ID Enter (map) or select the dataset ID of the dataset you want to delete.

Table

Watch Tables

Retrieves tables details when a new table is created in the specified dataset.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to watch for new tables.
Dataset ID Select or map the ID of the dataset you want to watch for new tables.
Limit Set the maximum number of tables Integromat will return during one execution cycle.

List Tables

Retrieves all tables in the specified dataset.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to retrieve tables from.
Dataset ID Select or map the ID of the dataset you want to retrieve tables from.
Limit Set the maximum number of tables Integromat will return during one execution cycle.

Get a Table

Retrieves table details.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to retrieve table details from.
Dataset ID Select or map the ID of the dataset you want to retrieve table details from.
Table ID Select or map the ID of the table you want to retrieve details for.

Create a Table

Creates a new, empty table in the specified dataset.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset where you want to create a table.
Dataset ID Select or map the ID of the dataset where you want to create a table.
Create Table ID Enter the ID of the table. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024 characters.
Fields Specify the fields of the table.
Require Partition Filter If enabled, queries over this table require a partition filter that can be used for partition elimination to be specified.
Expiration Days Enter the number of days for which to keep the storage for a partition.
Labels The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed.
Description Enter a user-friendly description of this table.

Update a Table

Updates an existing table.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset where you want to update a table.
Dataset ID Select or map the ID of the dataset where you want to update a table.
Table ID Enter the ID of the table you want to update.
Fields Specify the fields of the table.
Require Partition Filter If enabled, queries over this table require a partition filter that can be used for partition elimination to be specified.
Expiration Days Enter the number of days for which to keep the storage for a partition.
Labels The labels associated with this table. You can use these to organize and group your tables. Label keys and values can be no longer than 63 characters, and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed.
Description Enter a user-friendly description of this table.

Delete a Table

Delete a table.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to delete a table from.
Dataset ID Select or map the ID of the dataset you want to delete a table from.
Table ID Enter the ID of the table you want to delete.

Table Data

List Table Data

Retrieves the content of a table in rows.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to list table data from.
Dataset ID Select or map the ID of the dataset you want to list table data from.
Table ID Enter the ID of the table you want to retrieve rows from.
Limit Set the maximum number of row Integromat will return during one execution cycle.

Create a Row

To use this module, the billing must be enabled. Enable billing at console.cloud.google.com/billing.

Creates a new row in the table.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset where you want to create a table row.
Dataset ID Select or map the ID of the dataset where you want to create a table row.
Table ID Enter the ID of the table you want to add a row to.
Values of Row Enter desired values.

Query Job

Watch Query Job Completed

Returns query job details when the query job has been processed.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) you want to watch for jobs.
Filter Select whether to return successful (done) jobs, unsuccessful (pending, running), or both types of jobs.
Projection Restricts information returned to a set of selected fields.
Limit Set the maximum number of jobs Integromat will return during one execution cycle.

Write Query

Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.

Connection Establish a connection to your BigQuery.
Project ID Select or map the ID of the Google project (created via Google Cloud Platform) that contains the dataset you want to execute a query for.
Query

A query string, following the BigQuery query syntax, of the query to execute.

For example:

SELECT count(f1) FROM [myProjectId:myDatasetId.myTableId]

Other

Make an API Call

Allows you to perform a custom API call.

Connection Establish a connection to your BigQuery.
URL

Enter a path relative to https://bigquery.googleapis.com/bigquery.
For example: /v2/projects/{projectId}/datasets.

For the list of available endpoints, refer to the BigQuery API Documentation.
Method

Select the HTTP method you want to use:

GET
to retrieve information for an entry.

POST
to create a new entry.

PUT
to update/replace an existing entry.

PATCH
to make a partial entry update.

DELETE
to delete an entry.

Headers Enter the desired request headers. You don't have to add authorization headers; we have already done that for you.
Query String Enter the request query string.
Body Enter the body content for your API call.

Example of Use - List Tables

The following API call returns all tables in the specified project's dataset in your BigQuery:

URL:
/v2/projects/{project_id}/datasets/{dataset_id}/tables/

Method:
GET

2020-11-03_18_18_52-Integration_Meetup___Integromat.png

The result can be found in the module's Output under Bundle > Body > tables. 
In our example, four tables were returned:

2020-11-03_18_20_06-Integration_Meetup___Integromat.png

Was this article helpful?
1 out of 2 found this helpful
Menu
  • Features
  • Apps & Services
  • Templates
  • Pricing
  • What's new
  • Use cases
Information
  • Terms,  Privacy
  • FAQ
  • Help & Tutorials
  • Community
  • Affiliate Program
  • Blog
Developers
  • Developer Platform
Company
  • About the company
  • Join our team
  • Contact
Follow us
© 2020 Integromat by Celonis. All rights reserved. Integromat® is a registered trademark.
  • English