← Zoho CRM

Download Attachment with Zoho CRM API

Pipedream makes it easy to connect APIs for Zoho CRM and 800+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Download Attachment with the Zoho CRM API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Download Attachment with the Zoho CRM API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Download Attachment action
    1. Connect your Zoho CRM account
    2. Select a Module
    3. Configure Record ID
    4. Configure Attachment ID
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger


This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Download Attachment on Zoho CRM
Description:Downloads an attachment file from Zoho CRM, saves it in the temporary file system and exports the file path for use in a future step.


// legacy_hash_id: a_l0iQMl
import fs from "fs";
import { axios } from "@pipedream/platform";

export default {
  key: "zoho_crm-download-attachment",
  name: "Download Attachment",
  description: "Downloads an attachment file from Zoho CRM, saves it in the temporary file system and exports the file path for use in a future step.",
  version: "0.1.2",
  type: "action",
  props: {
    // eslint-disable-next-line pipedream/props-label
    // eslint-disable-next-line pipedream/props-description
    zoho_crm: {
      type: "app",
      app: "zoho_crm",
    // eslint-disable-next-line pipedream/props-description
    module: {
      type: "string",
      label: "Module",
      options: [
    // eslint-disable-next-line pipedream/props-description
    record_id: {
      type: "string",
      label: "Record ID",
    // eslint-disable-next-line pipedream/props-description
    attachment_id: {
      type: "string",
      label: "Attachment ID",
  async run({ $ }) {
    const file = await axios($, {
      url: `${this.zoho_crm.$auth.api_domain}/crm/v2/${this.module}/${this.record_id}/Attachments/${this.attachment_id}`,
      headers: {
        "Authorization": `Zoho-oauthtoken ${this.zoho_crm.$auth.oauth_access_token}`,
      responseType: "arraybuffer",

    const filePath = "/tmp/" + this.attachment_id;
    fs.writeFileSync(filePath, file);

    $.export("file_path", filePath);


This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
Zoho CRMzoho_crmappThis component uses the Zoho CRM app.
ModulemodulestringSelect a value from the drop down menu:LeadsAccountsContactsDealsCampaignsTasksCasesEventsCallsSolutionsProductsVendorsPrice_BooksQuotesSales_OrdersPurchase_OrdersInvoicesCustomActivities
Record IDrecord_idstring
Attachment IDattachment_idstring


Zoho CRM uses OAuth authentication. When you connect your Zoho CRM account, Pipedream will open a popup window where you can sign into Zoho CRM and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho CRM API.

Pipedream requests the following authorization scopes when you connect your account:


About Zoho CRM

Customer Relationship Management