← Zenkit + Data Stores integrations

Add or update a single record with Data Stores API on New Notification (Instant) from Zenkit API

Pipedream makes it easy to connect APIs for Data Stores, Zenkit and 1000+ other apps remarkably fast.

Trigger workflow on
New Notification (Instant) from the Zenkit API
Next, do this
Add or update a single record with the Data Stores 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

This integration creates a workflow with a Zenkit trigger and Data Stores 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 Notification (Instant) trigger
    1. Connect your Zenkit account
  3. Configure the Add or update a single record action
    1. Connect your Data Stores account
    2. Configure Data Store
    3. Select a Key
    4. Configure Value
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source 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 when there is a new notification in Zenkit
Version:0.0.1
Key:zenkit-new-notification

Trigger Code

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

export default {
  ...common,
  key: "zenkit-new-notification",
  name: "New Notification (Instant)",
  description: "Emit new event when there is a new notification in Zenkit",
  version: "0.0.1",
  type: "source",
  dedupe: "unique",
  methods: {
    ...common.methods,
    async getHistoricalEvents(params) {
      return this.zenkit.listNotifications({
        params,
      });
    },
    getTriggerType() {
      return "notification";
    },
    generateMeta(notification) {
      return {
        id: notification.id,
        summary: `New Notification ${notification.id}`,
        ts: Date.parse(notification.updated_at),
      };
    },
  },
};

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
ZenkitzenkitappThis component uses the Zenkit app.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.

Trigger Authentication

Zenkit uses OAuth authentication. When you connect your Zenkit account, Pipedream will open a popup window where you can sign into Zenkit and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zenkit API.

Pipedream requests the following authorization scopes when you connect your account:

About Zenkit

Productivity and Collaboration Software Suite

Action

Description:Add or update a single record in your [Pipedream Data Store](https://pipedream.com/data-stores/).
Version:0.0.8
Key:data_stores-add-update-record

Data Stores Overview

With the Data Stores API, you can build applications that:

  • Store data for later retrieval
  • Retrieve data from a store
  • Update data in a store
  • Delete data from a store

Action Code

import app from "../../data_stores.app.mjs";

export default {
  key: "data_stores-add-update-record",
  name: "Add or update a single record",
  description: "Add or update a single record in your [Pipedream Data Store](https://pipedream.com/data-stores/).",
  version: "0.0.8",
  type: "action",
  props: {
    app,
    dataStore: {
      propDefinition: [
        app,
        "dataStore",
      ],
    },
    key: {
      propDefinition: [
        app,
        "key",
        ({ dataStore }) => ({
          dataStore,
        }),
      ],
      description: "Enter a key for the record you'd like to create or select an existing key to update.",
    },
    value: {
      propDefinition: [
        app,
        "value",
      ],
    },
  },
  async run({ $ }) {
    const {
      key,
      value,
    } = this;
    const exists = await this.dataStore.has(key);
    const parsedValue = this.app.parseValue(value);
    await this.dataStore.set(key, parsedValue);
    // eslint-disable-next-line multiline-ternary
    $.export("$summary", `Successfully ${exists ? "updated the record for" : "added a new record with the"} key, \`${key}\`.`);
    return {
      key,
      value: parsedValue,
    };
  },
};

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
Data StoresappappThis component uses the Data Stores app.
Data StoredataStoredata_store

Select an existing Data Store or create a new one.

KeykeystringSelect a value from the drop down menu.
Valuevalueany

Enter a string, object, or array.

Action Authentication

The Data Stores API does not require authentication.

About Data Stores

Use Pipedream Data Stores to manage state throughout your workflows.

More Ways to Connect Data Stores + Zenkit

Delete All Records with Data Stores API on New Activity (Instant) from Zenkit API
Zenkit + Data Stores
 
Try it
List keys with Data Stores API on New Activity (Instant) from Zenkit API
Zenkit + Data Stores
 
Try it
Delete All Records with Data Stores API on New Entry (Instant) from Zenkit API
Zenkit + Data Stores
 
Try it
List keys with Data Stores API on New Entry (Instant) from Zenkit API
Zenkit + Data Stores
 
Try it
List Records with Data Stores API on New Activity (Instant) from Zenkit API
Zenkit + Data Stores
 
Try it
New Activity (Instant) from the Zenkit API

Emit new event when there is new activity in Zenkit

 
Try it
New Entry (Instant) from the Zenkit API

Emit new event when a new item/entry is created in Zenkit

 
Try it
New Notification (Instant) from the Zenkit API

Emit new event when there is a new notification in Zenkit

 
Try it
Updated Entry (Instant) from the Zenkit API

Emit new event when an entry is updated in Zenkit

 
Try it
Add Entry Comment with the Zenkit API

Add a comment to an entry/item within a list/collection on Zenkit. See the docs

 
Try it
Create Entry with the Zenkit API

Create an entry/item in a list on Zenkit. See the docs

 
Try it
Get Entry with the Zenkit API

Retrieve an entry/item from a list on Zenkit. See the docs

 
Try it
Get List with the Zenkit API

Retrieve a list/collection from a workspace on Zenkit. See the docs

 
Try it
Get User with the Zenkit API

Retrieve a user from a workspace on Zenkit. See the docs

 
Try it