Zoho: Get Approval Processes
Zoho approvalProcess.getApprovalProcess: arguments, response, policy and SDK examples.
← Approval process operations · Get started
Operation zoho.getapprovalprocess
Provider route: GET /crm/v8/settings/approval_process. Alter supplies the connection’s credentials and routing.
Call through Alter
Section titled “Call through Alter”Install @alter-ai/sdk @alter-ai/zoho with npm, or alter-sdk-zoho with pip. Supply your connected customer’s grant ID and the arguments described below.
import { App } from "@alter-ai/sdk";import { ZohoIntegration } from "@alter-ai/zoho";
async function execute(input: Parameters<ZohoIntegration["approvalProcess"]["getApprovalProcess"]>[0]) { const app = new App({ apiKey: process.env.ALTER_API_KEY! }); try { const provider = new ZohoIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! }); const call = await provider.approvalProcess.getApprovalProcess(input); const result = await call.wait(); return result.bodyJson(); } finally { await app.close(); }}import osfrom alter_sdk import Appfrom alter_sdk_zoho import ZohoIntegration
async def execute(arguments): async with App(api_key=os.environ["ALTER_API_KEY"]) as app: provider = ZohoIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]}) call = await provider.approval_process.get_approval_process(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
query | object | Optional | Additional keys: not allowed |
query.module | string | Optional | Maximum length: 3000 |
query.filter | string | Optional | Maximum length: 10000 |
query.page | integer | Optional | Format: int32 Minimum: 1 |
query.per_page | integer | Optional | Format: int32 Maximum: 200 Minimum: 1 |
query.ids | string | Optional | Format: int64 Maximum length: 19 Minimum length: 1 Pattern: ^[0-9]+$ |
query.generated_type | string | Optional | One of: custom, internal |
query.active | boolean | Optional |
Response
Section titled “Response”Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | JSON | Root | |
$ (anyOf 1) | Model | Alternative | Expand Get Approval Processes — response body — approval process, info |
$ (anyOf 2) | null | Alternative |
Referenced models: Get Approval Processes — response body — approval process, info
Schemas
Section titled “Schemas”Get Approval Processes — response body — approval process, info
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | If approval processes were configured in the org, then list of approval processes were returned. Additional keys: not allowed |
approval_process | array | Required within parent | Field: approval_process Maximum items: 200 |
approval_process[] | JSON | Each item | |
approval_process[] (anyOf 1) | Model | Alternative | Expand Get Approval Processes — response body — approval process, info approval process item Nested schema for approval process — GETApproval Process Nested1 |
approval_process[] (anyOf 2) | Model | Alternative | Expand Get Approval Processes — response body — approval process, info approval process item Nested schema for approval process — GETApproval Process Nested2 |
info | Model | Required within parent | Expand Get Approval Processes — response body — approval process, info info |
Referenced models: Get Approval Processes — response body — approval process, info info, Get Approval Processes — response body — approval process, info approval process item Nested schema for approval process — GETApproval Process Nested1, Get Approval Processes — response body — approval process, info approval process item Nested schema for approval process — GETApproval Process Nested2
Get Approval Processes — response body — approval process, info info
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for info Additional keys: not allowed |
count | JSON | Required within parent | |
count (anyOf 1) | integer | Alternative | Field: count Format: int32 |
count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
more_records | boolean | Required within parent | Field: more_records |
page | JSON | Required within parent | |
page (anyOf 1) | integer | Alternative | Field: page Format: int32 |
page (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
per_page | JSON | Required within parent | |
per_page (anyOf 1) | integer | Alternative | Field: per_page Format: int32 |
per_page (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Get Approval Processes — response body — approval process, info approval process item Nested schema for approval process — GETApproval Process Nested1
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for approval_process Additional keys: not allowed |
active | boolean | Required within parent | Field: active |
created_by | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item created by |
created_time | string | Required within parent | Field: created_time Maximum length: 255 |
description | string | Required within parent | Field: description Maximum length: 255 |
execute_on | string | Required within parent | Field: execute_on Maximum length: 255 |
generated_type | string | Required within parent | Field: generated_type Maximum length: 255 |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
modified_by | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item modified by |
modified_time | string | Required within parent | Field: modified_time Maximum length: 255 |
module | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item module |
name | string | Required within parent | Field: name Maximum length: 255 |
rules_count | JSON | Required within parent | |
rules_count (anyOf 1) | integer | Alternative | Field: rules_count Format: int32 |
rules_count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
sequence_number | JSON | Required within parent | |
sequence_number (anyOf 1) | integer | Alternative | Field: sequence_number Format: int32 |
sequence_number (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Get a single Approval Process — response body — approval process approval process item created by, Get a single Approval Process — response body — approval process approval process item modified by, Get a single Approval Process — response body — approval process approval process item module
Get Approval Processes — response body — approval process, info approval process item Nested schema for approval process — GETApproval Process Nested2
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for approval_process Additional keys: not allowed |
active | boolean | Required within parent | Field: active |
created_by | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item created by |
created_time | string | Required within parent | Field: created_time Maximum length: 255 |
execute_on | string | Required within parent | Field: execute_on Maximum length: 255 |
generated_type | string | Required within parent | Field: generated_type Maximum length: 255 |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
modified_by | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item modified by |
modified_time | string | Required within parent | Field: modified_time Maximum length: 255 |
module | Model | Required within parent | Expand Get a single Approval Process — response body — approval process approval process item module |
name | string | Required within parent | Field: name Maximum length: 255 |
rules_count | JSON | Required within parent | |
rules_count (anyOf 1) | integer | Alternative | Field: rules_count Format: int32 |
rules_count (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
sequence_number | JSON | Required within parent | |
sequence_number (anyOf 1) | integer | Alternative | Field: sequence_number Format: int32 |
sequence_number (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
Referenced models: Get a single Approval Process — response body — approval process approval process item created by, Get a single Approval Process — response body — approval process approval process item modified by, Get a single Approval Process — response body — approval process approval process item module
Get a single Approval Process — response body — approval process approval process item created by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for created_by Additional keys: not allowed |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
name | string | Required within parent | Field: name Maximum length: 255 |
Get a single Approval Process — response body — approval process approval process item modified by
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for modified_by Additional keys: not allowed |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
name | string | Required within parent | Field: name Maximum length: 255 |
Get a single Approval Process — response body — approval process approval process item module
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for module Additional keys: not allowed |
api_name | string | Required within parent | Field: api_name Maximum length: 255 |
id | string | Required within parent | Field: id Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getapprovalprocess. Catalog operation: getApprovalProcess. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.
Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.
No-content response statuses: [204]