Skip to content

Zoho: Automation Task — workflow Tasks get Task By Id

Zoho workflowTasks.getTaskById: arguments, response, policy and SDK examples.

← Workflow tasks operations · Get started

Operation zoho.gettaskbyid

Provider route: GET /crm/v8/settings/automation/tasks/{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["workflowTasks"]["getTaskById"]>[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.workflowTasks.getTaskById(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_tasks.get_task_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 parentMaximum length: 20
queryobjectOptionalAdditional keys: not allowed
query.include_inner_detailsstringOptionalOne of: related_module.module_name, related_module.plural_label, related_module.singular_label, display_value, module.module_name, module.plural_label, module.singular_label

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 Automation Task — workflow Tasks get Task By Id — response body — tasks
$ (anyOf 2)nullAlternative

Referenced models: Automation Task — workflow Tasks get Task By Id — response body — tasks

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

Automation Task — workflow Tasks get Task By Id — response body — tasks
FieldTypePresenceDescription and constraints
$objectRootSuccess response for retrieving a single automation task by ID. Contains the full task configuration including field_mappings, module, lock_status, and metadata.
Additional keys: not allowed
tasksarrayRequired within parentArray containing exactly one task object matching the requested ID.
Maximum items: 1
tasks[]ModelEach itemExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item

Referenced models: Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item

Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item
FieldTypePresenceDescription and constraints
$objectRootAutomation task details returned by the API, including ownership, module context, and field mappings.
Additional keys: not allowed
associatedbooleanOptionalWhether this task is associated with workflow/Blueprint/approval configuration.
created_byModelOptionalExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item created by
created_timestringRequired within parentTimestamp when the automation task was created.
Maximum length: 255
deletablebooleanOptionalIndicates whether this task can be deleted.
editablebooleanOptionalIndicates whether this task can be edited by the current user/context.
feature_typestringRequired within parentSpecify the automation feature category that uses this task. Values: "workflow" (workflow rule), "approval_process" (Approval Process), "Blueprint" (Blueprint transition), "kiosks" (kiosk/process flow), "scoring_rule" (Scoring Rule), "case_escalation_rule" (case escalation rule).
Known values: workflow, approval_process, blueprint, blueprint_transition, blueprint_state, review_process, orchestration, assignment_rules, kiosks, pathfinder, connected_workflows, commandcenter_service, cadences, scoring_rule, case_escalation_rule
Maximum length: 255
field_mappingsarrayRequired within parentSpecify the field mappings configured for the task. When an automation task is created, the fields should be mapped to tasks modules. Use this JSON array to map the fields of Automation Tasks fields to create tasks automatically when an automation is triggered.
Maximum items: 20
field_mappings[]ModelEach itemExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item field mappings item
idstringRequired within parentUnique ID of the automation task.
Maximum length: 255
lock_statusModelOptionalExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item lock status
modified_byModelOptionalExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item modified by
modified_timestringRequired within parentTimestamp when the task definition was last modified.
Maximum length: 255
moduleModelRequired within parentExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item module
namestringRequired within parentSpecify the name of the automation task.
Maximum length: 255
notifybooleanOptionalWhether owner notification is enabled for this task.
related_moduleJSONOptionalRelated module metadata when the task is tied to a secondary module; otherwise null. Specify the api_name and id of the related module.
related_module (anyOf 1)ModelAlternativeExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item module
related_module (anyOf 2)nullAlternativeNull when no related module is associated with the task.
sourcestringOptionalSource system that created or owns this task (for example: crm).
Maximum length: 255

Referenced models: Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item created by, Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item modified by, Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item field mappings item, Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item lock status, Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item module

Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item created by
FieldTypePresenceDescription and constraints
$objectRootProvides details about the creator of an entity, including their name and ID.
Additional keys: not allowed
idstringOptionalUnique Zoho CRM user ID of the creator.
Maximum length: 255
namestringOptionalDisplay name of the user who created this resource.
Maximum length: 255
Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item modified by
FieldTypePresenceDescription and constraints
$objectRootProvides details about the individual who modified an entity, including their name and ID.
Additional keys: not allowed
idstringOptionalUnique Zoho CRM user ID of the modifier.
Maximum length: 255
namestringOptionalDisplay name of the user who last modified this resource.
Maximum length: 255
Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item field mappings item
FieldTypePresenceDescription and constraints
$JSONRootRepresents a single field-to-value mapping used within automation actions such as workflow tasks, create_record, add_meeting, and schedule_call. Each mapping identifies a target field via api_name or ID, declares a type discriminator that determines value interpretation, and supplies a value whose shape varies by type: static supplies a literal value, merge_field supplies a runtime-resolved token string, execution_time supplies a date or datetime offset object, and composite supplies structured participant data for the Events Participants field. The field_mappings array must include all fields the target module requires; omitting any produces a REQUIRED_DATA_NOT_FOUND error.
discriminator: {"mapping": {"composite": "#/components/schemas/CompositeFieldMapping", "execution_time": "#/components/schemas/ExecutionTimeFieldMapping", "merge_field": "#/components/schemas/MergeFieldMapping", "static": "#/components/schemas/StaticFieldMapping"}, "propertyName": "type"}
$ (anyOf 1)ModelAlternativeExpand Create an Automation Task — request body — body tasks item field mappings item type static
$ (anyOf 2)ModelAlternativeExpand Create an Automation Task — request body — body tasks item field mappings item type merge field
$ (anyOf 3)ModelAlternativeExpand Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item field mappings item type execution time
$ (anyOf 4)ModelAlternativeExpand Create an Automation Task — request body — body tasks item field mappings item type composite

Referenced models: Create an Automation Task — request body — body tasks item field mappings item type composite, Create an Automation Task — request body — body tasks item field mappings item type merge field, Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item field mappings item type execution time, Create an Automation Task — request body — body tasks item field mappings item type static

Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item lock status
FieldTypePresenceDescription and constraints
$objectRootRepresents the lock status of a resource, indicating whether it is currently locked or not.
Additional keys: not allowed
lockedbooleanOptionalWhether this automation task is locked from editing.
Automation Task — workflow Tasks get Task By Id — response body — tasks tasks item module
FieldTypePresenceDescription and constraints
$objectRootContains module metadata, including labels, API name, IDs, and optional module_name for related module contexts.
Additional keys: not allowed
api_namestringRequired within parentAPI name of the module used in API requests (e.g., Leads, Contacts, Deals).
Maximum length: 255
idstringOptionalUnique Zoho CRM module ID.
Maximum length: 255
moduleNamestringOptionalModule display name (camelCase). Present on parent module objects only.
Maximum length: 255
module_namestringOptionalModule system name (snake_case). Present on related_module objects only.
Maximum length: 255
plural_labelstringOptionalPlural display label of the module (e.g., Leads, Contacts).
Maximum length: 255
singular_labelstringOptionalSingular display label of the module (e.g., Lead, Contact).
Maximum length: 255
Create an Automation Task — request body — body tasks item field mappings item type static value array
FieldTypePresenceDescription and constraints
$arrayRootRepresents an array of string values used as the static value for multiselectpicklist fields, where each element corresponds to an available picklist option. Valid option labels are retrievable from the GET /settings/fields endpoint filtered by data_type=multiselectpicklist.
Maximum items: 50
Minimum items: 1
$[]stringEach itemA single picklist option string to include in the multi-select field value. Each entry corresponds to one selectable option as defined for the target field in Zoho CRM.
Maximum length: 255

SDK function policy ID: zoho.gettaskbyid. Catalog operation: getTaskById. 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.