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

> Share Emails in Bulk. Zoho CRM Record Share Email Share Bulk Emails reference includes SDK V2 and CLI requests, input constraints, response fields,.

Share Emails in Bulk.

<Info>
  Tool ID: `zoho_crm_record_share_email_share_bulk_emails`
</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_record_share_email_share_bulk_emails',
  {
    "moduleApiName": "Leads",
    "ids": [
      "id_123"
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_record_share_email_share_bulk_emails --input '{
  "moduleApiName": "Leads",
  "ids": [
    "id_123"
  ]
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "data": [
      {
        "code": "SUCCESS",
        "details": {
          "id": "id_123"
        },
        "message": "Successfully shared",
        "status": "success"
      }
    ]
  }
}
```

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

## Input reference

Request body for sharing emails in bulk.

| Name                    | Type                                                                | Required | Default | Details                                                                                           |
| ----------------------- | ------------------------------------------------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| `payload.moduleApiName` | `"Leads" \| "Contacts" \| "Accounts" \| "Deals" \| "CustomModule1"` | Yes      | —       | Module Api Name of the record Allowed: `Leads`, `Contacts`, `Accounts`, `Deals`, `CustomModule1`. |
| `payload.ids`           | `array`                                                             | Yes      | —       | A list of record IDs to share emails for. Maximum items: 100.                                     |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for sharing emails in bulk.",
    "properties": {
      "moduleApiName": {
        "type": "string",
        "description": "Module Api Name of the record",
        "enum": [
          "Leads",
          "Contacts",
          "Accounts",
          "Deals",
          "CustomModule1"
        ]
      },
      "ids": {
        "type": "array",
        "description": "A list of record IDs to share emails for.",
        "maxItems": 100,
        "items": {
          "type": "string",
          "description": "The ID of a record.",
          "format": "string"
        }
      }
    },
    "required": [
      "moduleApiName",
      "ids"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                            | Type                    | Required | Default | Details                                                             |
| ------------------------------- | ----------------------- | -------- | ------- | ------------------------------------------------------------------- |
| `result.data`                   | `object`                | Yes      | —       | Response schema for successful bulk email sharing.                  |
| `result.data.data`              | `array`                 | No       | —       | List of results for the bulk sharing operation. Maximum items: 100. |
| `result.data.data[].code`       | `"SUCCESS"`             | Yes      | —       | Status code of the operation. Allowed: `SUCCESS`.                   |
| `result.data.data[].details`    | `object`                | Yes      | —       | Details of the shared record.                                       |
| `result.data.data[].details.id` | `string`                | Yes      | —       | The ID of the record. Format: `string`.                             |
| `result.data.data[].message`    | `"Successfully shared"` | Yes      | —       | A message indicating the result. Allowed: `Successfully shared`.    |
| `result.data.data[].status`     | `"success"`             | Yes      | —       | The status of the operation. Allowed: `success`.                    |
| `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 for successful bulk email sharing.",
        "properties": {
          "data": {
            "type": "array",
            "description": "List of results for the bulk sharing operation.",
            "maxItems": 100,
            "items": {
              "type": "object",
              "description": "Result for a single record.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Status code of the operation.",
                  "enum": [
                    "SUCCESS"
                  ]
                },
                "details": {
                  "type": "object",
                  "description": "Details of the shared record.",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The ID of the record.",
                      "format": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "A message indicating the result.",
                  "enum": [
                    "Successfully shared"
                  ]
                },
                "status": {
                  "type": "string",
                  "description": "The status of the operation.",
                  "enum": [
                    "success"
                  ]
                }
              },
              "required": [
                "code",
                "details",
                "message",
                "status"
              ],
              "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)
