> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Zoho CRM: README

> Associate Email. Zoho CRM Associate Email Associate Email reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Associate Email.

<Info>
  Tool ID: `zoho_crm_associate_email_associate_email`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'zoho_crm_associate_email_associate_email',
  {
    "module": "example",
    "recordId": "record_123",
    "data": [
      {
        "from": {
          "email": "jane.doe@example.com"
        },
        "to": [
          {
            "email": "jane.doe@example.com"
          }
        ],
        "subject": "Introduction",
        "content": "Example message",
        "original_message_id": "original_message_123",
        "sent": true,
        "date_time": "2026-01-15T12:00:00Z"
      }
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute zoho_crm_associate_email_associate_email --input '{
  "module": "example",
  "recordId": "record_123",
  "data": [
    {
      "from": {
        "email": "jane.doe@example.com"
      },
      "to": [
        {
          "email": "jane.doe@example.com"
        }
      ],
      "subject": "Introduction",
      "content": "Example message",
      "original_message_id": "original_message_123",
      "sent": true,
      "date_time": "2026-01-15T12:00:00Z"
    }
  ]
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "data": {
    "data": [
      {
        "code": "example",
        "details": {},
        "message": "Example message"
      }
    ]
  }
}
```

Use `deepline tools get zoho_crm_associate_email_associate_email --json` for the latest machine-readable contract.

## Input reference

Request body for associating an email with a record.

| Name               | Type     | Required | Default | Details                                                                       |
| ------------------ | -------- | -------- | ------- | ----------------------------------------------------------------------------- |
| `payload.module`   | `string` | Yes      | —       | The API name of the module (e.g., Leads, Contacts). Maximum length: 100.      |
| `payload.recordId` | `string` | Yes      | —       | The unique ID of the record to associate the email with. Maximum length: 100. |
| `payload.data`     | `array`  | Yes      | —       | List of email objects to process. Minimum items: 1. Maximum items: 50.        |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for associating an email with a record.",
    "properties": {
      "module": {
        "type": "string",
        "description": "The API name of the module (e.g., Leads, Contacts).",
        "maxLength": 100
      },
      "recordId": {
        "type": "string",
        "description": "The unique ID of the record to associate the email with.",
        "maxLength": 100
      },
      "data": {
        "type": "array",
        "description": "List of email objects to process.",
        "minItems": 1,
        "maxItems": 50,
        "items": {
          "type": "object",
          "description": "Detailed email metadata object.",
          "properties": {
            "from": {
              "type": "object",
              "description": "Object representing an email address and display name.",
              "properties": {
                "user_name": {
                  "type": "string",
                  "description": "The display name of the user.",
                  "maxLength": 255
                },
                "email": {
                  "type": "string",
                  "description": "The actual email address string.",
                  "maxLength": 255,
                  "format": "email"
                }
              },
              "required": [
                "email"
              ],
              "additionalProperties": false
            },
            "to": {
              "type": "array",
              "description": "Primary recipients.",
              "maxItems": 50,
              "items": {
                "type": "object",
                "description": "Object representing an email address and display name.",
                "properties": {
                  "user_name": {
                    "type": "string",
                    "description": "The display name of the user.",
                    "maxLength": 255
                  },
                  "email": {
                    "type": "string",
                    "description": "The actual email address string.",
                    "maxLength": 255,
                    "format": "email"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            },
            "cc": {
              "type": "array",
              "description": "Carbon copy recipients.",
              "maxItems": 50,
              "items": {
                "type": "object",
                "description": "Object representing an email address and display name.",
                "properties": {
                  "user_name": {
                    "type": "string",
                    "description": "The display name of the user.",
                    "maxLength": 255
                  },
                  "email": {
                    "type": "string",
                    "description": "The actual email address string.",
                    "maxLength": 255,
                    "format": "email"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            },
            "bcc": {
              "type": "array",
              "description": "Blind carbon copy recipients.",
              "maxItems": 50,
              "items": {
                "type": "object",
                "description": "Object representing an email address and display name.",
                "properties": {
                  "user_name": {
                    "type": "string",
                    "description": "The display name of the user.",
                    "maxLength": 255
                  },
                  "email": {
                    "type": "string",
                    "description": "The actual email address string.",
                    "maxLength": 255,
                    "format": "email"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              }
            },
            "subject": {
              "type": "string",
              "description": "The subject of the email.",
              "maxLength": 500
            },
            "content": {
              "type": "string",
              "description": "The email body content.",
              "maxLength": 32000
            },
            "mail_format": {
              "type": "string",
              "description": "Email content format.",
              "enum": [
                "text",
                "html"
              ]
            },
            "original_message_id": {
              "type": "string",
              "description": "Unique identifier from the mail server.",
              "maxLength": 255
            },
            "sent": {
              "type": "boolean",
              "description": "Whether the email was sent or received."
            },
            "date_time": {
              "type": "string",
              "description": "Timestamp of the email.",
              "maxLength": 50,
              "format": "date-time"
            },
            "attachments": {
              "type": "array",
              "description": "List of associated attachments.",
              "maxItems": 20,
              "items": {
                "type": "object",
                "description": "Reference to an email attachment.",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The attachment ID.",
                    "maxLength": 100
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "from",
            "to",
            "subject",
            "content",
            "original_message_id",
            "sent",
            "date_time"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "module",
      "recordId",
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                         | Type     | Required | Default | Details                                               |
| ---------------------------- | -------- | -------- | ------- | ----------------------------------------------------- |
| `result.data`                | `object` | Yes      | —       | Generic wrapper for multiple record action responses. |
| `result.data.data`           | `array`  | No       | —       | Array of result statuses. Maximum items: 50.          |
| `result.data.data[].code`    | `string` | No       | —       | Status code. Maximum length: 50.                      |
| `result.data.data[].details` | `record` | No       | —       | Contextual details.                                   |
| `result.data.data[].message` | `string` | No       | —       | Result message. Maximum length: 255.                  |
| `result.data.data[].status`  | `string` | No       | —       | Operation status. Maximum length: 50.                 |
| `result.meta`                | `object` | No       | —       | Additional response metadata (status, paging).        |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Generic wrapper for multiple record action responses.",
        "properties": {
          "data": {
            "type": "array",
            "description": "Array of result statuses.",
            "maxItems": 50,
            "items": {
              "type": "object",
              "description": "Individual result for a specific record.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Status code.",
                  "maxLength": 50
                },
                "details": {
                  "type": "object",
                  "description": "Contextual details.",
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Result message.",
                  "maxLength": 255
                },
                "status": {
                  "type": "string",
                  "description": "Operation status.",
                  "maxLength": 50
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)
