← Snowflake

Insert Row with Snowflake API

Pipedream makes it easy to connect APIs for Snowflake and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Insert Row with the Snowflake API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Insert Row with the Snowflake API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Insert Row action
    1. Connect your Snowflake account
    2. Select a Table Name
    3. Select one or more Columns
    4. Configure Values
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Insert Row with Snowflake API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Snowflake
 
Try it
Insert Row with Snowflake API on New Message from Discord API
Discord + Snowflake
 
Try it
Insert Row with Snowflake API on New Message In Channels from Slack API
Slack + Snowflake
 
Try it
Insert Row with Snowflake API on New Message in Channel from Discord Bot API
Discord Bot + Snowflake
 
Try it
Insert Row with Snowflake API on New Submission from Typeform API
Typeform + Snowflake
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Insert Row on Snowflake
Description:Insert a row into a table
Version:0.0.1
Key:snowflake-insert-row

Code

import snowflake from "../../snowflake.app.mjs";
import { ConfigurationError } from "@pipedream/platform";

export default {
  type: "action",
  key: "snowflake-insert-row",
  name: "Insert Row",
  description: "Insert a row into a table",
  version: "0.0.1",
  props: {
    snowflake,
    tableName: {
      propDefinition: [
        snowflake,
        "tableName",
      ],
      description: "The name of the table to insert a new row",
    },
    columns: {
      propDefinition: [
        snowflake,
        "columns",
        (c) => ({
          tableName: c.tableName,
        }),
      ],
    },
    values: {
      propDefinition: [
        snowflake,
        "values",
      ],
    },
  },
  async run({ $ }) {
    if (this.columns.length !== this.values.length) {
      throw new ConfigurationError("`Columns` length is different than `Values` length");
    }

    const response = await this.snowflake.insertRow(this.tableName, this.columns, this.values);
    $.export("$summary", `Sucessfully inserted row to ${this.tableName} table`);
    return response;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
SnowflakesnowflakeappThis component uses the Snowflake app.
Table NametableNamestringSelect a value from the drop down menu.
Columnscolumnsstring[]Select a value from the drop down menu.
Valuesvaluesstring[]

Insert values for the selected columns respectively. For string values, wrap them in single quotes. Example: 'This is a string'

Authentication

Snowflake uses API keys for authentication. When you connect your Snowflake account, Pipedream securely stores the keys so you can easily authenticate to Snowflake APIs in both code and no-code steps.

  1. Enter the username, password, and other details for your Snowflake database below. We recommend you create a read-only account if you only need to query Snowflake.

  2. Enter your Snowflake account identifier in the account field. You may need to include the full identifier and region as a part of this string, e.g. au12345.us-east-1. Please consult your instance and Snowflake docs for more detail.

About Snowflake

A data warehouse built for the cloud

More Ways to Use Snowflake

Triggers

New Query Results from the Snowflake API

Emit new event with the results of an arbitrary query

 
Try it
New Row from the Snowflake API

Emit new event when a row is added to a table

 
Try it