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
- 1Add a Snowflake step and click "Connect".
- 2Find your account identifier via the account icon in the console > View account details and paste it into "Account Identifier".
- 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).
- 4Optionally set "Default Database", "Default Role" and "Default Warehouse".
- 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 field | Type | Required |
|---|---|---|
| Account Identifier | Text | Yes |
| Username | Text | Yes |
| Password | Secret key | No |
| Private Key | Secret key | No |
| Private Key Passphrase | Secret key | No |
| Default Database | Text | No |
| Default Role | Text | No |
| Default Warehouse | Text | No |
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
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Created At Column | List (from your account) | Yes |
New or Updated RowPeriodic check4 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Updated At Column | List (from your account) | Yes |
New ColumnPeriodic check3 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
New TablePeriodic check2 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
New ViewPeriodic check2 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
Actions (14)
Operations available as flow steps. Expand each one to see its fields.
Run Query4 fields
| Field | Type | Required |
|---|---|---|
| SQL Query | Long text | Yes |
| Parameters | List of values | No |
| Query Timeout (ms) | Number | No |
| Application Name | Text | No |
Run Multiple Queries5 fields
| Field | Type | Required |
|---|---|---|
| SQL Queries | List of values | Yes |
| Parameters | List of values | No |
| Use Transaction | Yes / No | No |
| Query Timeout (ms) | Number | No |
| Application Name | Text | No |
Insert Row4 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Row Data | Dynamic fields | Yes |
Update Row6 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Columns to Update | Dynamic fields | Yes |
| WHERE Condition | Text | No |
| Update All Rows | Yes / No | No |
Delete Row4 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| WHERE Condition | Text | Yes |
Upsert Row5 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Match Column | List (from your account) | Yes |
| Row Data | Dynamic fields | Yes |
Insert Multiple Rows4 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Rows | List of values | Yes |
Get Row by ID5 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| ID Column | List (from your account) | Yes |
| ID Value | Text | Yes |
Search Rows6 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Filter Condition | Text | No |
| Sort By | Text | No |
| Row Limit | Number | No |
Get Table Schema3 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
List Tables2 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
Execute Stored Procedure4 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Stored Procedure | List (from your account) | Yes |
| Arguments | List of values | No |
Create / Refresh Dynamic Table6 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Dynamic Table Name | Text | Yes |
| Refresh Interval | Text | Yes |
| Warehouse | List (from your account) | No |
| Source Query | Long text | Yes |
Load Data from Stage9 fields
| Field | Type | Required |
|---|---|---|
| Database | List (from your account) | Yes |
| Schema | List (from your account) | Yes |
| Table | List (from your account) | Yes |
| Stage Path | Text | Yes |
| File Format | Fixed list | Yes |
| File Pattern | Text | No |
| Skip Header Rows | Number | No |
| Fail on Column Count Mismatch | Yes / No | No |
| On Error | Fixed list | No |
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
