Skip to content

Zoho: Retrieve Action Usage for a Workflow Rule

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

← Workflow rules operations · Get started

Operation zoho.getworkflowruleusage

Provider route: GET /crm/v8/settings/automation/workflow_rules/{workflowRuleId}/actions/usage. 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"]["getWorkflowRuleUsage"]>[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.getWorkflowRuleUsage(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_usage(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.workflowRuleIdstringRequired within parentFormat: string
queryobjectRequired within parentAdditional keys: not allowed
query.executed_fromstringRequired within parentFormat: date
query.executed_tillstringRequired within parentFormat: date

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

FieldTypePresenceDescription and constraints
$ModelRootExpand Retrieve Action Usage for a Workflow Rule — response body

Referenced models: Retrieve Action Usage for a Workflow Rule — response body

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

Retrieve Action Usage for a Workflow Rule — response body
FieldTypePresenceDescription and constraints
$objectRootRepresents the response body containing detailed execution usage metrics for one or more workflow rules within a queried date range.
Additional keys: not allowed
workflow_rulesarrayRequired within parentRepresents the array of workflow rule usage objects.
Maximum items: 10
workflow_rules[]objectEach itemRepresents the usage report for a single workflow rule, including execution metrics at the condition level.
Additional keys: not allowed
workflow_rules[].conditionsarrayRequired within parentRepresents the array of condition objects with usage metrics for the workflow rule.
Maximum items: 10
workflow_rules[].conditions[]JSONEach item
workflow_rules[].conditions[] (anyOf 1)ModelAlternativeExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count — Workflow Condition Usage Summary Schema
workflow_rules[].conditions[] (anyOf 2)ModelAlternativeExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count — Workflow Condition Usage With Tagged Instant Actions Schema
workflow_rules[].idstringRequired within parentRepresents the unique ID of the workflow rule.
Maximum length: 20
workflow_rules[].namestringRequired within parentRepresents the name of the workflow rule.
Maximum length: 255
workflow_rules[].reset_timeJSONRequired within parent
workflow_rules[].reset_time (anyOf 1)stringAlternativeRepresents the ISO 8601 timestamp when the usage counters were last reset.
Maximum length: 255
workflow_rules[].reset_time (anyOf 2)nullAlternativeRepresents the ISO 8601 timestamp when the usage counters were last reset.
Maximum length: 255
workflow_rules[].trigger_countJSONRequired within parent
workflow_rules[].trigger_count (anyOf 1)integerAlternativeRepresents the number of times this workflow rule was triggered within the queried date range.
Format: int32
workflow_rules[].trigger_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count — Workflow Condition Usage Summary Schema, Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count — Workflow Condition Usage With Tagged Instant Actions Schema

Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count — Workflow Condition Usage Summary Schema
FieldTypePresenceDescription and constraints
$objectRootRepresents the execution usage summary for a single workflow rule condition, including total execution count and breakdowns for instant and scheduled action groups.
Additional keys: not allowed
idstringRequired within parentRepresents the unique ID of the WorkflowConditionUsageSummary within the workflow rule.
Maximum length: 20
instant_actionsModelRequired within parentExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions — Instant Actions Usage List Schema
scheduled_actionsarrayRequired within parentRepresents the array of scheduled action groups configured for this condition.
Maximum items: 5
scheduled_actions[]ModelEach itemExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions item
usage_countJSONRequired within parent
usage_count (anyOf 1)integerAlternativeRepresents the total number of times the actions in this condition were executed.
Format: int32
usage_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions — Instant Actions Usage List Schema, Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions item

Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count — Workflow Condition Usage With Tagged Instant Actions Schema
FieldTypePresenceDescription and constraints
$objectRootRepresents the usage summary for a workflow rule condition where instant actions include tag-based metrics, along with scheduled action group data.
Additional keys: not allowed
idstringRequired within parentRepresents the unique ID of the WorkflowConditionUsageWithTaggedInstantActions within the workflow rule.
Maximum length: 20
instant_actionsModelRequired within parentExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions — Instant Actions Usage With Tags Schema
scheduled_actionsModelRequired within parentExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions
usage_countJSONRequired within parent
usage_count (anyOf 1)integerAlternativeRepresents the total number of times the actions in this condition were executed.
Format: int32
usage_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions — Instant Actions Usage With Tags Schema, Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions

Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions — Instant Actions Usage List Schema
FieldTypePresenceDescription and constraints
$objectRootRepresents a container for the list of instant action usage detail objects associated with a workflow rule condition.
Additional keys: not allowed
actionsarrayRequired within parentRepresents the array of action usage detail objects for the instant actions configured in this condition.
Maximum items: 5
actions[]JSONEach item
actions[] (anyOf 1)ModelAlternativeExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions item actions item
actions[] (anyOf 2)ModelAlternativeExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions actions item associated time, failure count, id, name, success count, type

Referenced models: Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions actions item associated time, failure count, id, name, success count, type, Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions item actions item

Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions item
FieldTypePresenceDescription and constraints
$objectRootRepresents a single scheduled action group within a workflow rule, containing the group ID and usage metrics for each action in the group.
Additional keys: not allowed
actionsarrayRequired within parentRepresents the array of action usage detail objects within this scheduled action group.
Maximum items: 5
actions[]ModelEach itemExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions item actions item
idstringRequired within parentRepresents the unique ID of the ScheduledActionsUsageGroup within the workflow rule.
Maximum length: 255

Referenced models: Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count scheduled actions item actions item

Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions — Instant Actions Usage With Tags Schema
FieldTypePresenceDescription and constraints
$objectRootRepresents a container for instant action usage details that include tag-based metrics, grouped within a workflow rule condition.
Additional keys: not allowed
actionsarrayRequired within parentRepresents the array of action usage detail objects, including those associated with tags, for the instant actions configured in this condition.
Maximum items: 5
actions[]ModelEach itemExpand Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions actions item

Referenced models: Retrieve Action Usage for a Workflow Rule — response body — workflow rules item conditions item id, instant actions, scheduled actions, usage count instant actions actions item

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

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.