← lemlist + Data Stores integrations

List Records with Data Stores API on New Activity (Instant) from lemlist API

Pipedream makes it easy to connect APIs for Data Stores, lemlist and 1,600+ other apps remarkably fast.

Trigger workflow on
New Activity (Instant) from the lemlist API
Next, do this
List Records with the Data Stores API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

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

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a lemlist 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 Activity (Instant) trigger
    1. Connect your lemlist account
    2. Optional- Select a Campaign Id
  3. Configure the List Records action
    1. Connect your Data Stores account
    2. Configure Data Store
    3. Select one or more Key
    4. Select a Return Type
  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 new activity. [See docs here](https://developer.lemlist.com/#add-a-hook)
Version:0.0.1
Key:lemlist-new-activity

lemlist Overview

With the lemlist API you can easily create campaigns with personalized emails
and track the results.

Some things you can build with the lemlist API:

  • A system to personalize emails based on information in a database
  • A campaign tracking system to see which emails are being opened and clicked
  • A way to A/B test different email content to see what works best

Trigger Code

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

export default {
  ...common,
  type: "source",
  name: "New Activity (Instant)",
  key: "lemlist-new-activity",
  description: "Emit new event for each new activity. [See docs here](https://developer.lemlist.com/#add-a-hook)",
  version: "0.0.1",
  dedupe: "unique",
  props: {
    ...common.props,
  },
  methods: {
    ...common.methods,
    getDataToEmit(activity) {
      const ts = new Date().getTime();
      return {
        id: `${activity.type}-${ts}`,
        summary: `New activity ${activity.type} received`,
        ts,
      };
    },
    async loadHistoricalData() {
      const activities = await this.lemlist.getActivities({
        params: {
          campaignId: this.campaignId || null,
          limit: 25,
        },
      });

      return activities.map((activity) => ({
        main: activity,
        sub: this.getDataToEmit(activity),
      }));
    },
    async proccessEvent({ body: activity }) {
      this.$emit(activity,  this.getDataToEmit(activity));
    },
  },
};

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
lemlistlemlistappThis component uses the lemlist app.
Campaign IdcampaignIdstringSelect a value from the drop down menu.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
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.

Trigger Authentication

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

Get your lemlist API key at the integration page.

About lemlist

Personalize cold emails, automate follow-ups, and engage with leads across all channels

Action

Description:List all records in your [Pipedream Data Store](https://pipedream.com/data-stores/).
Version:0.0.3
Key:data_stores-list-records

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

/* eslint-disable newline-per-chained-call */
import app from "../../data_stores.app.mjs";
import options from "../../common/options.mjs";

export default {
  key: "data_stores-list-records",
  name: "List Records",
  description: "List all records in your [Pipedream Data Store](https://pipedream.com/data-stores/).",
  version: "0.0.3",
  type: "action",
  props: {
    app,
    dataStore: {
      propDefinition: [
        app,
        "dataStore",
      ],
    },
    keys: {
      propDefinition: [
        app,
        "key",
        ({ dataStore }) => ({
          dataStore,
        }),
      ],
      description: "Select one or multiple keys to retrieve their records.",
      type: "string[]",
    },
    returnType: {
      label: "Return Type",
      description: "Specify the preferred data structure to return.",
      type: "string",
      options: options.LIST_ALL_RECORDS,
      default: "object",
    },
  },
  async run ({ $ }) {
    let keys = await this.dataStore.keys();
    if (this.keys.length > 0) {
      keys = keys.filter((key) => this.keys.includes(key));
    }
    const promises = [];
    for (const key of keys) {
      promises.push(new Promise((resolve, reject) => {
        this.dataStore.get(key).then((value) => {
          resolve({
            key,
            value,
          });
        }).catch((err) => {
          reject(err);
        });
      }));
    }

    const records = await Promise.all(promises);
    if (keys.length > 0) {
      $.export("$summary", `Found ${keys.length} record(s).`);
    } else {
      $.export("$summary", "No record found.");
    }

    switch (this.returnType) {
    case "object": {
      return records.reduce((acc, record) => {
        acc[record.key] = record.value;
        return acc;
      }, {});
    }
    case "array": {
      return records;
    }
    default:
      throw new Error(`Unknown return type: ${this.returnType}`);
    }
  },
};

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.

Keykeysstring[]Select a value from the drop down menu.
Return TypereturnTypestringSelect a value from the drop down menu:{ "label": "Return records as a single object", "value": "object" }{ "label": "Return records as an array with `key` and `value` properties", "value": "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 + lemlist

Delete All Records with Data Stores API on New Activity (Instant) from lemlist API
lemlist + Data Stores
 
Try it
List keys with Data Stores API on New Activity (Instant) from lemlist API
lemlist + Data Stores
 
Try it
Add or update multiple records with Data Stores API on New Activity (Instant) from lemlist API
lemlist + Data Stores
 
Try it
Add or update a single record with Data Stores API on New Activity (Instant) from lemlist API
lemlist + Data Stores
 
Try it
Delete a single record with Data Stores API on New Activity (Instant) from lemlist API
lemlist + Data Stores
 
Try it
New Activity (Instant) from the lemlist API

Emit new event for each new activity. See docs here

 
Try it
New Unsubscribed Recipient (Instant) from the lemlist API

Emit new event when a recipient unsubscribes. See docs here

 
Try it
Add Email In Unsubscribes with the lemlist API

This action adds a lead in the unsubscribed list. See the docs here

 
Try it
Add Lead To A Campaign with the lemlist API

This action adds a lead in a specific campaign. If the lead doesn't exist, it'll be created, then inserted to the campaign. The creator of the lead is the campaign's sender See the docs here

 
Try it
Delete An Email From Unsubscribes with the lemlist API

This action deletes a lead in the unsubscribed list. See the docs here

 
Try it
Delete Lead From Campaign with the lemlist API

This action deletes a lead from a specific campaign. All information, including statistics, will be deleted. See the docs here

 
Try it
Get Lead with the lemlist API

This action retrieves all the information of a specific lead using its email. See the docs here

 
Try it

Explore Other Apps

1
-
12
of
1,600+
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 models like ChatGPT, DALL-E, and Whisper.
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.