View as Markdown
Salesflare icon

Salesflare ACTION

Create Opprtunity

Create opportunity. See the docs here
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Salesflare account once, then configure and run Create Opprtunity 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: "salesflare-create-opportunity",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    salesflare: { authProvisionId: "apn_xxxxxxx" },
    owner: 10,
    account: 10,
  },
})

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.

Create Opprtunity inputs
Property Type Description
owner Owner ID integer
Owner ID
Optional Dynamic
account Account ID integer
Account ID
Required Dynamic
currency Currency integer
Currency
Optional Dynamic
startDate Start Date string
Start date. Must be in ISO format. e.g. 2019-08-24T14:15:22Z
Optional
probability Probability string
Probability of the opportunity. Min 0
Optional
name Name string
Name of the opportunity
Optional
value Value integer
Value of the opportunity. Min 0
Optional
closeDate Close Date string
Close date of the opportunity. Must be in ISO format. e.g. 2019-08-24T14:15:22Z
Optional
closed Closed boolean
Is closed
Optional
tags Tags string[]
Tags
Optional
recurringPricePerUnit Recurring Price Per Unit integer
Recurring price per unit
Optional
frequency Frequency string
Opportunity frequency
Optional
contractStartDate Contract Start Date string
Contract start date. Must be in ISO format. e.g. 2019-08-24T14:15:22Z
Optional
contractEndDate Contract End Date string
Contract end date. Must be in ISO format. e.g. 2019-08-24T14:15:22Z
Optional
custom Custom object
Custom fields
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
salesflare-create-opportunity
Version
0.0.2
App
Salesflare
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes