> ## 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: Global Picklists Replace Picklist Values

> Replace values in a Zoho CRM global picklist, updating records that use them. Includes SDK V2 examples, input constraints, response fields, and Deepline cost.

Replace values in a Zoho CRM global picklist, updating records that use them.

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

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

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "replace_picklist_values": [
      {
        "code": "example",
        "details": {},
        "message": "Example message",
        "status": "example"
      }
    ]
  }
}
```

Use `deepline describe 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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "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](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.