Zoho: Retrieve an Approval Process Rule
Zoho approvalProcess.getApprovalProcessRule: arguments, response, policy and SDK examples.
← Approval process operations · Get started
Operation zoho.getapprovalprocessrule
Provider route: GET /crm/v8/settings/approval_process/{approvalProcessId}/rules/{ruleId}. 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"]["getApprovalProcessRule"]>[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.getApprovalProcessRule(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_rule(arguments) result = await call.wait() return result.body_json()| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
path | object | Required within parent | Additional keys: not allowed |
path.approvalProcessId | string | Required within parent | Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
path.ruleId | string | Required within parent | Format: int64 Maximum length: 255 Minimum length: 1 Pattern: ^[0-9]+$ |
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 Retrieve an Approval Process Rule — response body — rules |
$ (anyOf 2) | null | Alternative |
Referenced models: Retrieve an Approval Process Rule — response body — rules
Schemas
Section titled “Schemas”35 more schemas are linked from the tables above, on the schema pages.
Retrieve an Approval Process Rule — response body — rules
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | If rule exists for the process, then details of the rule is received in the response. Below response is for overall_approval_type = everyone_sequential. Additional keys: not allowed |
rules | array | Required within parent | Field: rules Maximum items: 1 |
rules[] | Model | Each item | Expand Get rules for an Approval Process — response body — rules item |
Referenced models: Get rules for an Approval Process — response body — rules item
Get rules for an Approval Process — response body — rules item
Referenced models: Get rules for an Approval Process — response body — rules item criteria Nested schema for criteria, Get rules for an Approval Process — response body — rules item criteria Nested schema for group, Get rules for an Approval Process — response body — rules item overall stages record modification, Get rules for an Approval Process — response body — rules item actions per approval item, Get rules for an Approval Process — response body — rules item actions upon final approval, Get rules for an Approval Process — response body — rules item actions upon rejection, Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested, Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested1, Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested2, Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested3, Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested4, Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested5, Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested6, Get rules for an Approval Process — response body — rules item process admin configuration
Get rules for an Approval Process — response body — rules item criteria Nested schema for criteria
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for criteria Additional keys: allowed |
group | array | Optional | Field: group Maximum items: 2 |
group[] | Model | Each item | Expand Get rules for an Approval Process — response body — rules item criteria Nested schema for group |
group_operator | string | Optional | Field: group_operator Maximum length: 255 |
Referenced models: Get rules for an Approval Process — response body — rules item criteria Nested schema for group
Get rules for an Approval Process — response body — rules item criteria Nested schema for group
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for group Additional keys: not allowed |
comparator | string | Required within parent | Field: comparator Maximum length: 255 |
field | string | Required within parent | Field: field Maximum length: 255 |
value | array | Required within parent | Field: value Maximum items: 2 |
value[] | string | Each item | Field: value Maximum length: 255 |
Get rules for an Approval Process — response body — rules item overall stages record modification
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for overall_stages_record_modification Additional keys: not allowed |
after_record_rejection | Model | Required within parent | Expand Get rules for an Approval Process — response body — rules item overall stages record modification after record rejection |
during_approval_waiting | Model | Required within parent | Expand Get rules for an Approval Process — response body — rules item overall stages record modification during approval waiting |
Referenced models: Get rules for an Approval Process — response body — rules item overall stages record modification after record rejection, Get rules for an Approval Process — response body — rules item overall stages record modification during approval waiting
Get rules for an Approval Process — response body — rules item overall stages record modification after record rejection
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Nested schema for after_record_rejection Additional keys: not allowed |
update_allowed_for | string | Required within parent | Field: update_allowed_for Maximum length: 255 |
Policy, approvals and errors
Section titled “Policy, approvals and errors”SDK function policy ID: zoho.getapprovalprocessrule. Catalog operation: getApprovalProcessRule. 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]