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

> Get Sources Count. Zoho CRM User Groups Get Sources Count reference includes SDK V2 and CLI requests, input constraints, response fields, and Deepline cost.

Get Sources Count.

<Info>
  Tool ID: `zoho_crm_user_groups_get_sources_count`
</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_user_groups_get_sources_count',
  {
    "group": "1234567890"
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_user_groups_get_sources_count --input '{
  "group": "1234567890"
}' --json
```

## Example response

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

```json theme={null}
{
  "data": {
    "sources_count": [
      {
        "territories": 123,
        "roles": 123,
        "groups": 123
      }
    ]
  }
}
```

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

## Input reference

Get the count of sources (territories, roles, groups, and users) for the specified user group.

| Name            | Type           | Required | Default | Details                                                        |
| --------------- | -------------- | -------- | ------- | -------------------------------------------------------------- |
| `payload.group` | `"1234567890"` | Yes      | —       | The unique identifier of the user group Allowed: `1234567890`. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Get the count of sources (territories, roles, groups, and users) for the specified user group.",
    "properties": {
      "group": {
        "type": "string",
        "description": "The unique identifier of the user group",
        "enum": [
          "1234567890"
        ]
      }
    },
    "required": [
      "group"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                         | Type      | Required | Default | Details                                              |
| -------------------------------------------- | --------- | -------- | ------- | ---------------------------------------------------- |
| `result.data`                                | `object`  | Yes      | —       | Response containing sources count for the user group |
| `result.data.sources_count`                  | `array`   | Yes      | —       | Array of sources count information Maximum items: 1. |
| `result.data.sources_count[].territories`    | `integer` | No       | —       | Number of territories Format: `int32`.               |
| `result.data.sources_count[].roles`          | `integer` | No       | —       | Number of roles Format: `int32`.                     |
| `result.data.sources_count[].groups`         | `integer` | No       | —       | Number of groups Format: `int32`.                    |
| `result.data.sources_count[].users`          | `object`  | No       | —       | User count by status                                 |
| `result.data.sources_count[].users.inactive` | `integer` | Yes      | —       | Number of inactive users Format: `int32`.            |
| `result.data.sources_count[].users.deleted`  | `integer` | Yes      | —       | Number of deleted users Format: `int32`.             |
| `result.data.sources_count[].users.active`   | `integer` | Yes      | —       | Number of active users Format: `int32`.              |
| `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 containing sources count for the user group",
        "properties": {
          "sources_count": {
            "type": "array",
            "description": "Array of sources count information",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Count of sources by type",
              "properties": {
                "territories": {
                  "type": "integer",
                  "description": "Number of territories",
                  "format": "int32"
                },
                "roles": {
                  "type": "integer",
                  "description": "Number of roles",
                  "format": "int32"
                },
                "groups": {
                  "type": "integer",
                  "description": "Number of groups",
                  "format": "int32"
                },
                "users": {
                  "type": "object",
                  "description": "User count by status",
                  "properties": {
                    "inactive": {
                      "type": "integer",
                      "description": "Number of inactive users",
                      "format": "int32"
                    },
                    "deleted": {
                      "type": "integer",
                      "description": "Number of deleted users",
                      "format": "int32"
                    },
                    "active": {
                      "type": "integer",
                      "description": "Number of active users",
                      "format": "int32"
                    }
                  },
                  "required": [
                    "inactive",
                    "deleted",
                    "active"
                  ],
                  "additionalProperties": false
                }
              },
              "additionalProperties": false
            }
          }
        },
        "required": [
          "sources_count"
        ],
        "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)
