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

> Replace picklist values for a global picklist. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Replace picklist values for a global picklist.

<Info>
  Tool ID: `zoho_crm_global_picklists_replace_picklist_values`
</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_global_picklists_replace_picklist_values',
  {
    "id": "id_123",
    "replace_picklist_values": [
      {
        "old_value": {
          "id": "id_123",
          "display_value": "example"
        },
        "new_value": {
          "id": "id_123",
          "display_value": "example"
        }
      }
    ]
  },
);

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

### CLI

```bash theme={null}
deepline tools execute zoho_crm_global_picklists_replace_picklist_values --input '{
  "id": "id_123",
  "replace_picklist_values": [
    {
      "old_value": {
        "id": "id_123",
        "display_value": "example"
      },
      "new_value": {
        "id": "id_123",
        "display_value": "example"
      }
    }
  ]
}' --json
```

## Example response

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

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

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

## Input reference

Request body for replacing picklist values in a global picklist.

| Name                              | Type     | Required | Default | Details                                                      |
| --------------------------------- | -------- | -------- | ------- | ------------------------------------------------------------ |
| `payload.id`                      | `string` | Yes      | —       | Numeric id of the resource. Format: `int64`.                 |
| `payload.replace_picklist_values` | `array`  | Yes      | —       | Array of picklist value replacement pairs. Maximum items: 1. |

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

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Request body for replacing picklist values in a global picklist.",
    "properties": {
      "id": {
        "type": "string",
        "description": "Numeric id of the resource.",
        "format": "int64"
      },
      "replace_picklist_values": {
        "type": "array",
        "description": "Array of picklist value replacement pairs.",
        "maxItems": 1,
        "items": {
          "type": "object",
          "description": "Represents a single picklist value replacement pair.",
          "properties": {
            "old_value": {
              "type": "object",
              "description": "The existing picklist value to be replaced.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Id of the resource.",
                  "format": "int64"
                },
                "display_value": {
                  "type": "string",
                  "description": "The picklist display value(translated value if translation enabled).",
                  "maxLength": 120
                }
              },
              "additionalProperties": false
            },
            "new_value": {
              "type": "object",
              "description": "The new picklist value that will replace the old one.",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "Id of the resource.",
                  "format": "int64"
                },
                "display_value": {
                  "type": "string",
                  "description": "The picklist display value(translated value if translation enabled).",
                  "maxLength": 120
                }
              },
              "additionalProperties": false
            }
          },
          "required": [
            "old_value",
            "new_value"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "id",
      "replace_picklist_values"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name                                            | Type     | Required | Default | Details                                                                              |
| ----------------------------------------------- | -------- | -------- | ------- | ------------------------------------------------------------------------------------ |
| `result.data`                                   | `object` | Yes      | —       | Response object for immediate replacement completion.                                |
| `result.data.replace_picklist_values`           | `array`  | Yes      | —       | Array of replacement operation results. Maximum items: 1.                            |
| `result.data.replace_picklist_values[].code`    | `string` | Yes      | —       | Indicates that the replacement operation completed successfully. Maximum length: 50. |
| `result.data.replace_picklist_values[].details` | `record` | Yes      | —       | Additional details about the replacement operation.                                  |
| `result.data.replace_picklist_values[].message` | `string` | Yes      | —       | Human-readable message about the replacement operation. Maximum length: 255.         |
| `result.data.replace_picklist_values[].status`  | `string` | Yes      | —       | Status of the replacement operation. 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": "Response object for immediate replacement completion.",
        "properties": {
          "replace_picklist_values": {
            "type": "array",
            "description": "Array of replacement operation results.",
            "maxItems": 1,
            "items": {
              "type": "object",
              "description": "Replacement operation result object.",
              "properties": {
                "code": {
                  "type": "string",
                  "description": "Indicates that the replacement operation completed successfully.",
                  "maxLength": 50
                },
                "details": {
                  "type": "object",
                  "description": "Additional details about the replacement operation.",
                  "additionalProperties": false
                },
                "message": {
                  "type": "string",
                  "description": "Human-readable message about the replacement operation.",
                  "maxLength": 255
                },
                "status": {
                  "type": "string",
                  "description": "Status of the replacement operation.",
                  "maxLength": 50
                }
              },
              "required": [
                "code",
                "details",
                "message",
                "status"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "replace_picklist_values"
        ],
        "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)
