View as Markdown
ActiveCampaign icon

ActiveCampaign ACTION

Update Deal

Updates an existing deal. See the docs here.
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's ActiveCampaign account once, then configure and run Update Deal from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "activecampaign-update-deal",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    activecampaign: { authProvisionId: "apn_xxxxxxx" },
    dealId: "Deal ID",
    title: "Title",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Update Deal inputs
Property Type Description
dealId Deal ID string
Id of the deal to update.
Optional Dynamic
title Title string
Deal's title.
Optional
description Description string
Deal's description.
Optional
account Account ID string
Deal's account id.
Optional
contact Contact ID string
Deal's primary contact id.
Optional
value Value string
Deal's value in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero. int32 datatype.
Optional
currency Currency string
Deal's currency in 3-digit ISO format, lowercased.
Optional
group Group string
Deal's pipeline id. Deal's stage or deal.stage should belong to deal.group.
Optional
stage Stage string
Deal's stage id. deal.stage should belong to Deal's pipeline or deal.group.
Optional
owner Owner string
Deal's owner id.
Optional
percent Percent string
Deal's percentage. int32 datatype.
Optional
status Status integer

Deal's status. Valid values:

  • 0 - Open
  • 1 - Won
  • 2 - Lost
Optional
fields Fields string[]
Deal's custom field values [{customFieldId, fieldValue}]
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
activecampaign-update-deal
Version
0.2.3
App
ActiveCampaign
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes