> ## 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: Deal Link Emails Get Record Actions

> Unlink several emails from a Zoho CRM contact by their message IDs. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Unlink several emails from a Zoho CRM contact by their message IDs.

> [!NOTE]
>
> Tool ID: `zoho_crm_deal_link_emails_get_record_actions`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
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 returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "Emails": [
      {
        "status": "success",
        "code": "SUCCESS",
        "message": "Example message",
        "details": {
          "message_id": "message_123"
        }
      }
    ]
  }
}
```

Use `deepline describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.