Skip to content

Zoho: Retrieve Workflow Rule by ID

Zoho workflowRules.getWorkflowRuleById: arguments, response, policy and SDK examples.

← Workflow rules operations · Get started

Operation zoho.getworkflowrulebyid

Provider route: GET /crm/v8/settings/automation/workflow_rules/{id}. 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["workflowRules"]["getWorkflowRuleById"]>[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.workflowRules.getWorkflowRuleById(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.workflow_rules.get_workflow_rule_by_id(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.idstringRequired within parentFormat: string

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 Workflow Rule by ID — response body — workflow rules
$ (anyOf 2)nullAlternative

Referenced models: Retrieve Workflow Rule by ID — response body — workflow rules

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

Retrieve Workflow Rule by ID — response body — workflow rules
FieldTypePresenceDescription and constraints
$objectRootRepresents the response body for a single workflow rule retrieval, containing a single-element array with the full rule details.
Additional keys: not allowed
workflow_rulesarrayRequired within parentRepresents the array containing the single workflow rule retrieved.
Maximum items: 10
workflow_rules[]ModelEach itemExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item

Referenced models: List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item

List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item
FieldTypePresenceDescription and constraints
$objectRootRepresents the full configuration and metadata of a single workflow rule, including its trigger, conditions, actions, lock status, and audit timestamps.
Additional keys: not allowed
categorystringOptionalRepresents the classification category of the workflow rule.
Maximum length: 255
conditionsarrayOptionalRepresents the array of condition objects that define the criteria for executing the actions of the workflow rule.
Maximum items: 10
conditions[]ModelEach itemExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item
created_byModelRequired within parentExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item created by
created_timestringRequired within parentRepresents the ISO 8601 timestamp indicating when the system created this workflow rule.
Format: date-time
Maximum length: 255
deletablebooleanRequired within parentIndicates whether the requesting user has permission to delete this workflow rule.
deprecatedbooleanOptionalIndicates whether this workflow rule is deprecated and should be migrated to a newer configuration.
descriptionJSONRequired within parent
description (anyOf 1)stringAlternativeRepresents the user-defined description of the workflow rule. Null if not set.
Maximum length: 255
description (anyOf 2)nullAlternativeRepresents the user-defined description of the workflow rule. Null if not set.
Maximum length: 255
editablebooleanRequired within parentIndicates whether the requesting user has permission to edit this workflow rule.
execute_whenModelRequired within parentExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item execute when
idstringRequired within parentRepresents the unique ID of the workflow rule.
Maximum length: 20
last_executed_timeJSONRequired within parent
last_executed_time (anyOf 1)stringAlternativeRepresents the ISO 8601 timestamp of the last time this workflow rule was triggered. Null if the rule has never been triggered.
Format: date-time
last_executed_time (anyOf 2)nullAlternativeRepresents the ISO 8601 timestamp of the last time this workflow rule was triggered. Null if the rule has never been triggered.
Format: date-time
lockModelRequired within parentExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item lock
modified_byModelRequired within parentExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item created by
modified_timeModelRequired within parentExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item modified time
moduleModelRequired within parentExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item module
namestringRequired within parentRepresents the name of the workflow rule.
Maximum length: 255
sourcestringRequired within parentRepresents the origin of the workflow rule. For example, **crm** for rules created through the CRM UI, or **API** for rules created through the API.
Maximum length: 255
statusModelRequired within parentExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item status

Referenced models: List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item status, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item created by, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item module, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item execute when, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item lock, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item modified time

List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item status
FieldTypePresenceDescription and constraints
$objectRootRepresents the activation state of a workflow rule, indicating whether the rule is currently active.
Additional keys: not allowed
activebooleanOptionalIndicates whether the workflow rule is currently active.

Possible values:
true - The workflow rule is active and executes its configured actions when trigger conditions are met.
false - The workflow rule is inactive and does not execute, even when trigger conditions are met.
List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item created by
FieldTypePresenceDescription and constraints
$objectRootRepresents the identity details of the CRM user who created or last modified the workflow rule.
Additional keys: not allowed
idstringOptionalRepresents the unique ID of the CRM user.
Format: string
namestringOptionalRepresents the name of the CRM user who created or last modified the workflow rule.
Format: string
List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item module
FieldTypePresenceDescription and constraints
$objectRootRepresents a CRM module or field reference using its API name and unique numeric ID.
Minimum fields: 1
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the module or field, such as **Leads**, **Contacts**, or a custom field API name.
Maximum length: 100
idstringRequired within parentRepresents the unique numeric ID of the module or field.
Maximum length: 20
List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item
FieldTypePresenceDescription and constraints
$objectRootRepresents a single condition within a workflow rule that defines which records are evaluated and what actions are executed when the criteria are met.
Additional keys: not allowed
_deletenullOptionalIndicates that this condition should be removed from the workflow rule when set in a PUT request. Provide a null value to signal deletion.
criteria_detailsModelOptionalExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item criteria details
Record matching criteria for this condition. When provided, criteria_details must be a JSON object and cannot be null. To match all records, pass an object with criteria set to null, but do not set criteria_details itself to null. This field is required for certain trigger types, such as related module triggers like Notes on Leads. The convert action type requires criteria_details.criteria to be a non-null filter object. Omit criteria_details entirely or pass criteria as null to match all records when the trigger does not require specific criteria and no convert action is present.
idstringOptionalRepresents the unique ID of the condition. Auto-generated on creation. Required on PUT to identify which condition to update.
Format: int64
instant_actionsModelOptionalExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item instant actions
Actions to execute immediately when the condition is met. At least one of instant_actions or scheduled_actions must be present - returns MANDATORY_NOT_FOUND if both are absent.
scheduled_actionsModelOptionalExpand List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item scheduled actions
Actions to execute after a configured delay. Scheduled actions require both the trigger and the action type to support scheduling.
sequence_numberJSONRequired within parent
sequence_number (anyOf 1)integerAlternativeRepresents the execution order of this condition within the workflow rule, starting from one. Must be unique across all conditions in the rule.
Format: int32
sequence_number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item criteria details, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item instant actions, List Workflow Rules in your Zoho CRM Organization — response body — workflow rules item conditions item scheduled actions

SDK function policy ID: zoho.getworkflowrulebyid. Catalog operation: getWorkflowRuleById. 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 which product and documentation features are useful.

Performance diagnostics

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

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