Skip to content
Google BigQuery

How to use Google BigQuery

Data & BICost: 1 credit per runTop 100 · #73Full guide

What it is for

The Google BigQuery component lets you query, insert, update and delete data in BigQuery from flooows. It is useful for loading app events into your warehouse, looking up records or starting processes when a query finishes.

Triggers check BigQuery periodically every few minutes and start the flow for each new or updated row or when a query job completes.

Set up the connection

Authentication type: OAuth 2.0 (sign in with your account) · Custom credentials

  1. 1Add a Google BigQuery step and click "Connect".
  2. 2With OAuth, sign in with your Google account and grant BigQuery access.
  3. 3For production flows you can use a service account: in Google Cloud Console > IAM > Service Accounts create one, give it BigQuery roles (for example Data Editor and Job User) and download a JSON key.
  4. 4Paste the full JSON content into "Service Account JSON" and save.
Connection fieldTypeRequired
MarkdownMARKDOWNNo
Service Account JSONTextYes

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • "Run a Query" runs the "SQL Query" in the selected "Project"; set "Location" if your dataset is not in the default location.
  • "Create Row" takes "Row Values" with mapped columns; "Create Rows" inserts a whole array.
  • "Update Row(s)" and "Delete Rows" require a "WHERE Clause"; test it first with "Find One Row".
  • "Find or Create Record" prevents duplicates when syncing.

Tips

  • •Service accounts do not expire like a personal sign-in.
  • •Enable "Ignore Unknown Fields" when source data carries extra columns.
  • •Limit "Max Rows" to keep output size under control.

Triggers (4)

Events that can start a flow. Expand each one to see its fields.

New RowPeriodic check5 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
Sort ColumnTextYes
Max Rows per CheckNumberNo
Updated RowPeriodic check6 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
Updated At ColumnTextYes
Created At Column (optional)TextNo
Max Rows per CheckNumberNo
Query Job Completed (With Row Data)Periodic check2 fields
FieldTypeRequired
ProjectList (from your account)Yes
Max Rows per JobNumberNo
New Job CompletedPeriodic check2 fields
FieldTypeRequired
ProjectList (from your account)Yes
Include Failed JobsYes / NoNo

Actions (10)

Operations available as flow steps. Expand each one to see its fields.

Run a Query5 fields
FieldTypeRequired
ProjectList (from your account)Yes
SQL QueryLong textYes
Max RowsNumberNo
LocationTextNo
Use Legacy SQLYes / NoNo
Create Row4 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
Row ValuesDynamic fieldsYes
Create Rows6 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
RowsJSONYes
Skip Invalid RowsYes / NoNo
Ignore Unknown FieldsYes / NoNo
Delete Rows5 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
WHERE ClauseLong textYes
LocationTextNo
Update Row(s)6 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
SET ExpressionLong textYes
WHERE ClauseLong textYes
LocationTextNo
Find One Row6 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
WHERE ClauseLong textYes
ORDER BYTextNo
LocationTextNo
Find or Create Record6 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
WHERE ClauseLong textYes
Row to Create (if not found)JSONYes
LocationTextNo
Get Rows for Job Completed4 fields
FieldTypeRequired
ProjectList (from your account)Yes
Job IDTextYes
Max RowsNumberNo
LocationTextNo
Import Data6 fields
FieldTypeRequired
ProjectList (from your account)Yes
DatasetList (from your account)Yes
TableList (from your account)Yes
DataJSONYes
Skip Invalid RowsYes / NoNo
Ignore Unknown FieldsYes / NoNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

"Access Denied" or insufficient permissions.

Grant BigQuery roles to the account or service account on the project and dataset.

Dataset not found in location.

Set the correct "Location" (for example EU or europe-southwest1).

Rows rejected on insert.

Check column types and names or enable "Skip Invalid Rows".

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps