Skip to content

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.

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 os
from alter_sdk import App
from 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()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.approvalProcessIdstringRequired within parentFormat: int64
Maximum length: 255
Minimum length: 1
Pattern: ^[0-9]+$
path.ruleIdstringRequired within parentFormat: int64
Maximum length: 255
Minimum length: 1
Pattern: ^[0-9]+$

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)ModelAlternativeExpand Retrieve an Approval Process Rule — response body — rules
$ (anyOf 2)nullAlternative

Referenced models: Retrieve an Approval Process Rule — response body — rules

35 more schemas are linked from the tables above, on the schema pages.

Retrieve an Approval Process Rule — response body — rules
FieldTypePresenceDescription and constraints
$objectRootIf 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
rulesarrayRequired within parentField: rules
Maximum items: 1
rules[]ModelEach itemExpand 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
FieldTypePresenceDescription and constraints
$objectRootNested schema for rules
Additional keys: not allowed
actions_per_approvalarrayOptionalField: actions_per_approval
Maximum items: 10
actions_per_approval[]ModelEach itemExpand Get rules for an Approval Process — response body — rules item actions per approval item
actions_upon_final_approvalModelRequired within parentExpand Get rules for an Approval Process — response body — rules item actions upon final approval
actions_upon_rejectionModelRequired within parentExpand Get rules for an Approval Process — response body — rules item actions upon rejection
approver_stagesarrayRequired within parentField: approver_stages
Maximum items: 10
approver_stages[]JSONEach item
approver_stages[] (anyOf 1)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested
approver_stages[] (anyOf 2)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested1
approver_stages[] (anyOf 3)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested2
approver_stages[] (anyOf 4)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested3
approver_stages[] (anyOf 5)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested4
approver_stages[] (anyOf 6)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested5
approver_stages[] (anyOf 7)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item approver stages item Nested schema for approver stages — GETApprover Stages Nested6
criteriaJSONRequired within parent
criteria (anyOf 1)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item criteria Nested schema for criteria
criteria (anyOf 2)ModelAlternativeExpand Get rules for an Approval Process — response body — rules item criteria Nested schema for group
idstringRequired within parentField: id
Format: int64
Maximum length: 255
Minimum length: 1
Pattern: ^[0-9]+$
namestringRequired within parentField: name
Maximum length: 255
overall_approval_typestringRequired within parentField: overall_approval_type
Maximum length: 255
overall_stages_record_modificationModelOptionalExpand Get rules for an Approval Process — response body — rules item overall stages record modification
process_admin_configurationModelRequired within parentExpand Get rules for an Approval Process — response body — rules item process admin configuration
sequence_numberJSONRequired within parent
sequence_number (anyOf 1)integerAlternativeField: sequence_number
Format: int32
sequence_number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

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
FieldTypePresenceDescription and constraints
$objectRootNested schema for criteria
Additional keys: allowed
grouparrayOptionalField: group
Maximum items: 2
group[]ModelEach itemExpand Get rules for an Approval Process — response body — rules item criteria Nested schema for group
group_operatorstringOptionalField: 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
FieldTypePresenceDescription and constraints
$objectRootNested schema for group
Additional keys: not allowed
comparatorstringRequired within parentField: comparator
Maximum length: 255
fieldstringRequired within parentField: field
Maximum length: 255
valuearrayRequired within parentField: value
Maximum items: 2
value[]stringEach itemField: value
Maximum length: 255
Get rules for an Approval Process — response body — rules item overall stages record modification
FieldTypePresenceDescription and constraints
$objectRootNested schema for overall_stages_record_modification
Additional keys: not allowed
after_record_rejectionModelRequired within parentExpand Get rules for an Approval Process — response body — rules item overall stages record modification after record rejection
during_approval_waitingModelRequired within parentExpand 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
FieldTypePresenceDescription and constraints
$objectRootNested schema for after_record_rejection
Additional keys: not allowed
update_allowed_forstringRequired within parentField: update_allowed_for
Maximum length: 255

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]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand how our website, product, and documentation are used.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

Advertising

Shares visits and sign-ups with Meta, Reddit, and X so we can measure which of our ads work.

You can change these choices at any time from Cookie settings.