View as Markdown
Zoho Desk icon

Zoho Desk ACTION

Download Thread Attachment

Download a specific attachment belonging to a thread of a ticket. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Zoho Desk account once, then configure and run Download Thread Attachment 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: "zoho_desk-download-thread-attachment",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    zoho_desk: { authProvisionId: "apn_xxxxxxx" },
    orgId: "Organization ID",
    ticketId: "Ticket ID",
  },
})

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.

Download Thread Attachment inputs
Property Type Description
orgId Organization ID string
The ID of the organization
Required Dynamic
ticketId Ticket ID string
The ID of the ticket
Required Dynamic
threadId Thread ID string
The ID of the thread
Required Dynamic
attachmentId Attachment ID string
The ID of the attachment
Required Dynamic
filename Filename string
The filename to save the attachment as in the /tmp directory
Optional
syncDir SyncDir dir
Required

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
zoho_desk-download-thread-attachment
Version
0.0.4
App
Zoho Desk
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes