View as Markdown
Snowflake icon

Snowflake ACTION

Insert Multiple Rows

Insert multiple rows into a table
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Snowflake account once, then configure and run Insert Multiple Rows from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "snowflake-insert-multiple-rows",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    snowflake: { authProvisionId: "apn_xxxxxxx" },
    database: "Database",
    schema: "Schema",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Insert Multiple Rows inputs
Property Type Description
database Database string
The database to use
Required Dynamic
schema Schema string
The schema to use
Required Dynamic
tableName Table Name string
The table where you want to add rows
Required Dynamic
columns Columns string[]
Select the columns you want to insert data into
Required Dynamic
values Row Values string
Provide an array of arrays. Each nested array should represent a row, with each element of the nested array representing a value (e.g., passing [["Foo",1,2],["Bar",3,4]] will insert two rows of data with three columns each). The most common pattern is to reference an array of arrays exported by a previous step (e.g., {{steps.foo.$return_value}}). You may also enter or construct a string that will JSON.parse() to an array of arrays.
Required
batchSize Batch Size integer
Number of rows to process per batch. Automatically calculated based on data size if not specified. Recommended: 50-200 for wide tables, 100-500 for narrow tables.
Optional
maxPayloadSizeMB Max Payload Size (MB) integer
Maximum payload size per batch in MB. Helps prevent 413 Payload Too Large errors.
Optional
enableBatching Enable Batch Processing boolean
Enable automatic batch processing for large datasets. Disable only for small datasets (< 50 rows) or troubleshooting.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
snowflake-insert-multiple-rows
Version
0.1.7
App
Snowflake
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes