Skip to content

Zoho: Assignment Rules

Zoho assignmentRules.getAssignmentRules: arguments, response, policy and SDK examples.

← Assignment rules operations · Get started

Operation zoho.getassignmentrules

Provider route: GET /crm/v8/settings/automation/assignment_rules. 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["assignmentRules"]["getAssignmentRules"]>[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.assignmentRules.getAssignmentRules(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.assignment_rules.get_assignment_rules(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectOptionalAdditional keys: not allowed
query.modulestringOptionalMaximum length: 100
query.include_inner_detailsstringOptionalOne of: created_by.zuid, modified_by.zuid

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 Assignment Rules — response body — Get all Assignment Rules success response
$ (anyOf 2)nullAlternative

Referenced models: Assignment Rules — response body — Get all Assignment Rules success response

Assignment Rules — response body — Get all Assignment Rules success response
FieldTypePresenceDescription and constraints
$objectRootGet all Assignment Rules success response.
Additional keys: not allowed
assignment_rulesarrayOptionalRepresents the list of all Assignment Rules.
Maximum items: 200
Minimum items: 1
assignment_rules[]ModelEach itemExpand Assignment Rules — response body — Get all Assignment Rules success response assignment rules item

Referenced models: Assignment Rules — response body — Get all Assignment Rules success response assignment rules item

Assignment Rules — response body — Get all Assignment Rules success response assignment rules item
FieldTypePresenceDescription and constraints
$objectRootDetails of the Assignment Rule.
Additional keys: not allowed
api_namestringRequired within parentRepresents the API name of the rule.
Maximum length: 100
Minimum length: 1
created_byModelRequired within parentExpand Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module
created_timestringRequired within parentRepresents the date and time of Assignment Rule creation.
Format: date-time
Maximum length: 255
default_assigneeModelRequired within parentExpand Assignment Rules — response body — Get all Assignment Rules success response assignment rules item default assignee
Defines the details of the fall back user to whom the records will be assigned when owner couldn't be assigned by any of the rule entries defined. (Required)
descriptionJSONRequired within parent
description (anyOf 1)stringAlternativePurpose of the Assignment Rule.
Maximum length: 250
description (anyOf 2)nullAlternativePurpose of the Assignment Rule.
Maximum length: 250
idstringRequired within parentID of the resource.
Maximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$
modified_byModelRequired within parentExpand Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module
modified_timestringRequired within parentRepresents the date and time of Assignment Rule recent modification.
Format: date-time
Maximum length: 255
moduleModelOptionalExpand Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module
namestringRequired within parentRepresents the name to be displayed for the Assignment Rule.
Maximum length: 100
Minimum length: 1

Referenced models: Assignment Rules — response body — Get all Assignment Rules success response assignment rules item default assignee, Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module

Assignment Rules — response body — Get all Assignment Rules success response assignment rules item default assignee
FieldTypePresenceDescription and constraints
$objectRootDetails of the fallback user for record assignment in cases where the owner cannot be assigned through rule entries.
Additional keys: not allowed
idJSONOptionalRepresents the iD of the default assignee. is deprecated.
id (anyOf 1)stringAlternativeID of the resource.
Maximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$
id (anyOf 2)stringAlternativeTo define "logged in user" as fallback user for the given Assignment Rule, set ${CURRENTUSER} as value for this field.
Known values: ${CURRENTUSER}
namestringOptionalRepresents the display name of the default assignee.
Maximum length: 255
resourceJSONOptionalRepresents the resource returned for the Assignment Rule operation.
resource (anyOf 1)ModelAlternativeExpand Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module
Defines the details of the default assignee
resource (anyOf 2)JSONAlternativeDefines the details of the default assignee.
Additional keys: not allowed
resource (anyOf 2).api_namestringOptionalTo define "logged in user" as fallback user for the given Assignment Rule, set ${CURRENTUSER} as value for this field.
Possible values:
**${CURRENTUSER}** - Represents ${currentuser}.
Known values: ${CURRENTUSER}
resource (anyOf 2).namestringOptionalLogged in user reference display name.
Maximum length: 255
typestringOptionalDefines the type of the default assignee.
Possible values:
**user** - Represents user.
Known values: user

Referenced models: Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module

Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module
FieldTypePresenceDescription and constraints
$objectRootResource details.
Additional keys: allowed
_detailsModelOptionalExpand Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module details
api_namestringOptionalRepresents the API name of the resource.
Maximum length: 255
idstringRequired within parentID of the resource.
Id of the resource
Maximum length: 19
Minimum length: 1
Pattern: ^[1-9][0-9]{0,18}$
namestringRequired within parentRepresents the display name of the resource.
Maximum length: 255
zuidstringOptionalZuid of the user resource
Format: int32
Maximum length: 19

Referenced models: Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module details

Assignment Rules — response body — Get all Assignment Rules success response assignment rules item module details
FieldTypePresenceDescription and constraints
$JSONRoot
$ (anyOf 1)nullAlternative_Details Schema.
Additional keys: allowed
$ (anyOf 2)objectAlternative_Details Schema.
Additional keys: allowed

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