Skip to content
Snowflake

How to use Snowflake

DevelopersCost: 1 credit per runTop 100 · #25Full guide

What it is for

The Snowflake component lets you read and write your data warehouse from flooows: run SQL, insert, update or upsert rows, call stored procedures and load data from a stage. Use it to push app data into the warehouse or react to new rows.

Triggers check Snowflake periodically every few minutes and start the flow for each new row, column, table or view found.

Set up the connection

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

  1. 1Add a Snowflake step and click "Connect".
  2. 2Find your account identifier via the account icon in the console > View account details and paste it into "Account Identifier".
  3. 3With username and password, fill "Username" and "Password". For automation an RSA key pair is better: generate it with openssl, attach the public key to your user with ALTER USER ... SET RSA_PUBLIC_KEY and paste the private key into "Private Key" (plus "Private Key Passphrase" if encrypted).
  4. 4Optionally set "Default Database", "Default Role" and "Default Warehouse".
  5. 5For OAuth, an admin must first create a security integration with the redirect URL shown in flooows and obtain the Client ID and Secret.
Connection fieldTypeRequired
Account IdentifierTextYes
UsernameTextYes
PasswordSecret keyNo
Private KeySecret keyNo
Private Key PassphraseSecret keyNo
Default DatabaseTextNo
Default RoleTextNo
Default WarehouseTextNo

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 Query" runs the "SQL Query"; use "Parameters" to pass values from earlier steps instead of concatenating them.
  • "Insert Row" needs "Database", "Schema" and "Table" plus an object in "Row Data" with mapped columns and values.
  • "Upsert Row" updates or inserts based on the "Match Column".
  • "Run Multiple Queries" with "Use Transaction" rolls everything back if one query fails.

Tips

  • •Use a dedicated role and warehouse with minimal privileges.
  • •Tune "Query Timeout (ms)" for long queries.
  • •Enable warehouse auto-suspend to control cost with polling triggers.

Triggers (5)

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

New RowPeriodic check4 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
Created At ColumnList (from your account)Yes
New or Updated RowPeriodic check4 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
Updated At ColumnList (from your account)Yes
New ColumnPeriodic check3 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
New TablePeriodic check2 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
New ViewPeriodic check2 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes

Actions (14)

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

Run Query4 fields
FieldTypeRequired
SQL QueryLong textYes
ParametersList of valuesNo
Query Timeout (ms)NumberNo
Application NameTextNo
Run Multiple Queries5 fields
FieldTypeRequired
SQL QueriesList of valuesYes
ParametersList of valuesNo
Use TransactionYes / NoNo
Query Timeout (ms)NumberNo
Application NameTextNo
Insert Row4 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
Row DataDynamic fieldsYes
Update Row6 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
Columns to UpdateDynamic fieldsYes
WHERE ConditionTextNo
Update All RowsYes / NoNo
Delete Row4 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
WHERE ConditionTextYes
Upsert Row5 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
Match ColumnList (from your account)Yes
Row DataDynamic fieldsYes
Insert Multiple Rows4 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
RowsList of valuesYes
Get Row by ID5 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
ID ColumnList (from your account)Yes
ID ValueTextYes
Search Rows6 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
Filter ConditionTextNo
Sort ByTextNo
Row LimitNumberNo
Get Table Schema3 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
List Tables2 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
Execute Stored Procedure4 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
Stored ProcedureList (from your account)Yes
ArgumentsList of valuesNo
Create / Refresh Dynamic Table6 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
Dynamic Table NameTextYes
Refresh IntervalTextYes
WarehouseList (from your account)No
Source QueryLong textYes
Load Data from Stage9 fields
FieldTypeRequired
DatabaseList (from your account)Yes
SchemaList (from your account)Yes
TableList (from your account)Yes
Stage PathTextYes
File FormatFixed listYes
File PatternTextNo
Skip Header RowsNumberNo
Fail on Column Count MismatchYes / NoNo
On ErrorFixed listNo

Common errors

RSA key authentication fails.

Check the public key is set on the user and the private key was pasted in full, including headers.

"Object does not exist or not authorized".

Grant the role access to the database, schema and table, or change "Default Role".

No active warehouse.

Set "Default Warehouse" or grant USAGE on it.

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