← Airbrake + Airtable integrations

Delete Record with Airtable API on New Error Occurred from Airbrake API

Pipedream makes it easy to connect APIs for Airtable, Airbrake and 1200+ other apps remarkably fast.

Trigger workflow on
New Error Occurred from the Airbrake API
Next, do this
Delete Record with the Airtable API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Airbrake trigger and Airtable action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Error Occurred trigger
    1. Connect your Airbrake account
    2. Configure timer
    3. Select a Project ID
  3. Configure the Delete Record action
    1. Connect your Airtable account
    2. Select a Base
    3. Select a Table
    4. Configure Record ID
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are 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.

Trigger

Description:Emit new event for each error occurred. [See docs here](https://docs.airbrake.io/docs/devops-tools/api/#list-notices-v4)
Version:0.0.3
Key:airbrake-new-error-occurred

Airbrake Overview

With the Airbrake API, you can build integrations that send data to Airbrake
from your application. This can include:

  • Error monitoring
  • Application performance monitoring
  • Custom dashboards
  • Integrations with 3rd party services

Trigger Code

import airbrake from "../../airbrake.app.mjs";
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";

export default {
  name: "New Error Occurred",
  version: "0.0.3",
  key: "airbrake-new-error-occurred",
  description: "Emit new event for each error occurred. [See docs here](https://docs.airbrake.io/docs/devops-tools/api/#list-notices-v4)",
  type: "source",
  dedupe: "unique",
  props: {
    airbrake,
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      static: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
    projectId: {
      propDefinition: [
        airbrake,
        "projectId",
      ],
    },
  },
  methods: {
    emitEvent(data) {
      this._setLastNoticeId(data.id);

      this.$emit(data, {
        id: data.id,
        summary: `New error with id ${data.id}`,
        ts: Date.parse(data.created_at),
      });
    },
    _setLastNoticeId(id) {
      this.db.set("lastNoticeId", id);
    },
    _getLastNoticeId() {
      return this.db.get("lastNoticeId");
    },
  },
  hooks: {
    async deploy() {
      const { notices } = await this.airbrake.getProjectNotices({
        projectId: this.projectId,
        params: {
          page: 1,
        },
      });

      notices.slice(-10).reverse()
        .forEach(this.emitEvent);
    },
  },
  async run() {
    const lastNoticeId = this._getLastNoticeId();

    let page = 1;

    while (page >= 0) {
      const { notices } = await this.airbrake.getProjectNotices({
        projectId: this.projectId,
        params: {
          page,
        },
      });

      notices.reverse().forEach(this.emitEvent);

      if (notices.filter((notice) => notice.id === lastNoticeId)) {
        return;
      }

      page++;
    }
  },
};

Trigger 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
AirbrakeairbrakeappThis component uses the Airbrake app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer
Project IDprojectIdintegerSelect a value from the drop down menu.

Trigger Authentication

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

  • To access a user-based API Key, sign in to your Airbrake account and go to Profile > Profile & Notifications.
  • To access a Project-based API Key, open a project on your Dashboard, and click Settings on the top right.
  • Alternatively, you can generate time-expiring user API Tokens here: https://airbrake.io/docs/api/#create-user-token-v4.

About Airbrake

Airbrake collects errors generated by other applications, and aggregates the results for review.

Action

Description:Delete a record from a table by record ID.
Version:0.2.0
Key:airtable-delete-record

Airtable Overview

Using the Airtable API, you can build applications that can:

  • Create and manage databases
  • Add, update, and delete records
  • Search for records
  • Sort and filter records
  • Display records in a variety of ways
  • Import and export data

Action Code

import airtable from "../../airtable.app.mjs";
import common from "../common.mjs";

export default {
  key: "airtable-delete-record",
  name: "Delete Record",
  description: "Delete a record from a table by record ID.",
  version: "0.2.0",
  type: "action",
  props: {
    ...common.props,
    recordId: {
      propDefinition: [
        airtable,
        "recordId",
      ],
    },
  },
  async run({ $ }) {
    const baseId = this.baseId?.value ?? this.baseId;
    const tableId = this.tableId?.value ?? this.tableId;
    const recordId = this.recordId?.value ?? this.recordId;

    this.airtable.validateRecordID(recordId);
    const base = this.airtable.base(baseId);
    let response;
    try {
      response = await base(this.tableId.value).destroy(recordId);
    } catch (err) {
      this.airtable.throwFormattedError(err);
    }

    $.export("$summary", `Deleted record "${this.recordId?.label || recordId}" from ${this.baseId?.label || baseId}: [${this.tableId?.label || tableId}](https://airtable.com/${baseId}/${tableId})`);
    return response;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
AirtableairtableappThis component uses the Airtable app.
BasebaseIdstringSelect a value from the drop down menu.
TabletableIdstringSelect a value from the drop down menu.
Record IDrecordIdstring

Enter a record ID (eg. recxxxxxxx).

Action Authentication

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

Visit your account settings, copy your API key, and enter it below. If you only need to read data from Airtable, and not modify it, you can generate a read-only API key.


get airtable api key

About Airtable

Looks like a spreadsheet, acts like a database.

More Ways to Connect Airtable + Airbrake

List Records in View with Airtable API on New Error Occurred from Airbrake API
Airbrake + Airtable
 
Try it
Create Multiple Records with Airtable API on New Error Occurred from Airbrake API
Airbrake + Airtable
 
Try it
List Records with Airtable API on New Error Occurred from Airbrake API
Airbrake + Airtable
 
Try it
Create single record or update with Airtable API on New Error Occurred from Airbrake API
Airbrake + Airtable
 
Try it
Get Record or Create with Airtable API on New Error Occurred from Airbrake API
Airbrake + Airtable
 
Try it
New Error Occurred from the Airbrake API

Emit new event for each error occurred. See docs here

 
Try it
New or Modified Records from the Airtable API

Emit an event for each new or modified record in a table

 
Try it
New or Modified Records in View from the Airtable API

Emit an event for each new or modified record in a view

 
Try it
New Records from the Airtable API

Emit an event for each new record in a table

 
Try it
New Records in View from the Airtable API

Emit an event for each new record in a view

 
Try it
Create Single Record with the Airtable API

Adds a record to a table.

 
Try it
Create Multiple Records with the Airtable API

Create one or more records in a table by passing an array of objects containing field names and values as key/value pairs.

 
Try it
List Records with the Airtable API

Retrieve records from a table with automatic pagination. Optionally sort and filter results.

 
Try it
List Records in View with the Airtable API

Retrieve records in a view with automatic pagination. Optionally sort and filter results.

 
Try it
Update Record with the Airtable API

Update a single record in a table by Record ID.

 
Try it

Explore Other Apps

1
-
12
of
1200+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.