View as Markdown
Teamleader Focus icon

Teamleader Focus ACTION

Import Message

Import a message into a ticket. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Teamleader Focus account once, then configure and run Import Message 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: "teamleader_focus-import-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    teamleader_focus: { authProvisionId: "apn_xxxxxxx" },
    ticketId: "Ticket ID",
    body: "Body",
  },
})

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.

Import Message inputs
Property Type Description
ticketId Ticket ID string
Identifier of a ticket
Required Dynamic
body Body string
Uses HTML formatting
Required
sentByType Sent By Type string
The type of the sender
Required
company Sent By Id (Company) string
Identifier of a company
Required Dynamic
contact Sent By Id (Contact) string
Identifier of a contact lead
Required Dynamic
user Sent By Id (User) string
User responsible for the new deal
Required Dynamic
sentAt Sent At string
The date and time the message was sent, E.g. 2024-02-29T11:11:11+00:00
Required
fileIds File IDs string[]
Identifiers of files
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
teamleader_focus-import-message
Version
0.0.1
App
Teamleader Focus
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes