UNPKG

@pipedream/lemlist

Version:

Pipedream Lemlist Components

30 lines (26 loc) 814 B
import lemlist from "../../lemlist.app.mjs"; export default { key: "lemlist-mark-lead-from-all-campaigns-as-interested", name: "Mark Lead From All Campaigns As Interested", description: "This action marks a specific lead as interested using its email in all campaigns. [See the docs here](https://developer.lemlist.com/#mark-as-interested-a-specific-lead-by-email)", version: "0.0.1", type: "action", props: { lemlist, email: { propDefinition: [ lemlist, "email", ], }, }, async run({ $ }) { const response = await this.lemlist.markLeadInAllCampaigns({ $, email: this.email, action: "interested", }); $.export("$summary", `Successfully added ${this.email} lead as interested in all campaigns!`); return response; }, };