> ## 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

> Unlink Emails from Records. Includes SDK V2 and CLI requests, input constraints, response fields, and Deepline credit cost.

Unlink Emails from Records.

<Info>
  Tool ID: `zoho_crm_deal_link_emails_get_record_actions`
</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_deal_link_emails_get_record_actions',
  {
    "contactId": "1238016000000476011",
    "message_ids": "fa3efd2e3d21c63dfb3a1ead81cfbcacef42ff6e3779f724ad799f911f6b8cc6ba45cad7c0856e06f2f6ea8b0f41798b",
    "owner_id": "1238016000000362001"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_deal_link_emails_get_record_actions --input '{
  "contactId": "1238016000000476011",
  "message_ids": "fa3efd2e3d21c63dfb3a1ead81cfbcacef42ff6e3779f724ad799f911f6b8cc6ba45cad7c0856e06f2f6ea8b0f41798b",
  "owner_id": "1238016000000362001"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "Emails": [
      {
        "status": "success",
        "code": "SUCCESS",
        "message": "Example message",
        "details": {
          "message_id": "message_123"
        }
      }
    ]
  }
}
```

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

## Input reference

Unlinks the emails from the specified records in CRM.

| Name                  | Type                                                                                                                                                                                                       | Required | Default | Details                                                                                                                                                                                                                                                     |
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `payload.contactId`   | `"1238016000000476011" \| "1238016000000674013"`                                                                                                                                                           | Yes      | —       | The ID of the contact to which the email is to be linked or unlinked Allowed: `1238016000000476011`, `1238016000000674013`.                                                                                                                                 |
| `payload.message_ids` | `"fa3efd2e3d21c63dfb3a1ead81cfbcacef42ff6e3779f724ad799f911f6b8cc6ba45cad7c0856e06f2f6ea8b0f41798b" \| "fa3efd2e3d21c63dfb3a1ead81cfbcac3428b9eb290577709d7f12289b5aa1bf5b2bd0f6744144c7a9aae67068ccdc7f"` | Yes      | —       | The IDs of the email messages to be linked Allowed: `fa3efd2e3d21c63dfb3a1ead81cfbcacef42ff6e3779f724ad799f911f6b8cc6ba45cad7c0856e06f2f6ea8b0f41798b`, `fa3efd2e3d21c63dfb3a1ead81cfbcac3428b9eb290577709d7f12289b5aa1bf5b2bd0f6744144c7a9aae67068ccdc7f`. |
| `payload.owner_id`    | `"1238016000000362001"`                                                                                                                                                                                    | Yes      | —       | The ID of the owner of the contact Allowed: `1238016000000362001`.                                                                                                                                                                                          |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Unlinks the emails from the specified records in CRM.",
    "properties": {
      "contactId": {
        "type": "string",
        "description": "The ID of the contact to which the email is to be linked or unlinked",
        "enum": [
          "1238016000000476011",
          "1238016000000674013"
        ]
      },
      "message_ids": {
        "type": "string",
        "description": "The IDs of the email messages to be linked",
        "enum": [
          "fa3efd2e3d21c63dfb3a1ead81cfbcacef42ff6e3779f724ad799f911f6b8cc6ba45cad7c0856e06f2f6ea8b0f41798b",
          "fa3efd2e3d21c63dfb3a1ead81cfbcac3428b9eb290577709d7f12289b5aa1bf5b2bd0f6744144c7a9aae67068ccdc7f"
        ]
      },
      "owner_id": {
        "type": "string",
        "description": "The ID of the owner of the contact",
        "enum": [
          "1238016000000362001"
        ]
      }
    },
    "required": [
      "contactId",
      "message_ids",
      "owner_id"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                      | Type        | Required | Default | Details                                                          |
| ----------------------------------------- | ----------- | -------- | ------- | ---------------------------------------------------------------- |
| `result.data`                             | `object`    | Yes      | —       | Response schema                                                  |
| `result.data.Emails`                      | `array`     | Yes      | —       | List of email unlink operation results Maximum items: 20.        |
| `result.data.Emails[].status`             | `"success"` | Yes      | —       | Status of the unlink operation Allowed: `success`.               |
| `result.data.Emails[].code`               | `"SUCCESS"` | Yes      | —       | Result code of the unlink operation Allowed: `SUCCESS`.          |
| `result.data.Emails[].message`            | `string`    | Yes      | —       | Detailed message about the unlink operation Maximum length: 256. |
| `result.data.Emails[].details`            | `object`    | Yes      | —       | Additional details about the unlink operation                    |
| `result.data.Emails[].details.message_id` | `string`    | Yes      | —       | Unique identifier of the email message Maximum length: 256.      |
| `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": "Response schema",
        "properties": {
          "Emails": {
            "type": "array",
            "description": "List of email unlink operation results",
            "maxItems": 20,
            "items": {
              "type": "object",
              "description": "Email unlink operation result",
              "properties": {
                "status": {
                  "type": "string",
                  "description": "Status of the unlink operation",
                  "enum": [
                    "success"
                  ]
                },
                "code": {
                  "type": "string",
                  "description": "Result code of the unlink operation",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "message": {
                  "type": "string",
                  "description": "Detailed message about the unlink operation",
                  "maxLength": 256
                },
                "details": {
                  "type": "object",
                  "description": "Additional details about the unlink operation",
                  "properties": {
                    "message_id": {
                      "type": "string",
                      "description": "Unique identifier of the email message",
                      "maxLength": 256
                    }
                  },
                  "required": [
                    "message_id"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "status",
                "code",
                "message",
                "details"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "Emails"
        ],
        "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)
