Skip to content

Zoho: Scoring Rules — scoring Rules get Scoring Rules

Zoho scoringRules.getScoringRules: arguments, response, policy and SDK examples.

← Scoring rules operations · Get started

Operation zoho.getscoringrules

Provider route: GET /crm/v8/settings/automation/scoring_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["scoringRules"]["getScoringRules"]>[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.scoringRules.getScoringRules(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.scoring_rules.get_scoring_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.layout_idnumberOptional
query.pageintegerOptionalFormat: int32
query.per_pageintegerOptionalFormat: int32
query.namestringOptionalMaximum length: 25
query.fieldsstringOptionalMaximum length: 255
query.activebooleanOptional

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 Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules
$ (anyOf 2)nullAlternative

Referenced models: Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules

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

Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules
FieldTypePresenceDescription and constraints
$objectRootRepresents the response body for the list Scoring Rules operation.
Additional keys: not allowed
infoModelOptionalExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules info
scoring_rulesarrayOptionalRepresents an array of Scoring Rule summary objects returned in the list response.
Maximum items: 300
scoring_rules[]ModelEach itemExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item

Referenced models: Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item, Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules info

Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item
FieldTypePresenceDescription and constraints
$objectRootRepresents the root element for defining a scoring rule, including layout, fields, custom fields, and scoring configurations.
Additional keys: not allowed
activebooleanOptionalIndicates whether the Scoring Rule is active (`true`) or inactive (`false`).
created_byModelOptionalExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item created by
created_timestringOptionalScoring rule created time
Maximum length: 255
custom_fieldsJSONOptional
custom_fields (anyOf 1)arrayAlternativeRepresents the custom fields configured for this Scoring Rule to hold referenced scores.
Maximum items: 6
custom_fields (anyOf 1)[]ModelEach itemExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item custom fields null item
custom_fields (anyOf 2)nullAlternativeRepresents the custom fields configured for this Scoring Rule to hold referenced scores.
Maximum items: 6
custom_fields (anyOf 2)[]ModelEach itemExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item custom fields null item
descriptionJSONOptional
description (anyOf 1)stringAlternativeRepresents the optional description of the Scoring Rule. This field is nullable.
Maximum length: 500
description (anyOf 2)nullAlternativeRepresents the optional description of the Scoring Rule. This field is nullable.
Maximum length: 500
field_rulesarrayOptionalModule field based score configuration can be added here
Maximum items: 50
field_rules[]ModelEach itemExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item field rules item
has_signal_rulesbooleanOptionalIt defines whether the production scoring rule has any signal rules or not. Applicable only for Leads and Contacts modules rules in Sandbox environment.
idstringOptionalRepresents the unique ID of the Scoring Rule.
Maximum length: 255
layoutModelOptionalExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item layout
Layout info. If the rule should be created for all layouts, this field can be skipped or set value as null.
modified_byModelOptionalExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item modified by
Scoring rule modified by
modified_timeJSONOptional
modified_time (anyOf 1)stringAlternativeRepresents the date and time when the Scoring Rule was last modified, in ISO 8601 format. This field is nullable.
Maximum length: 255
modified_time (anyOf 2)nullAlternativeRepresents the date and time when the Scoring Rule was last modified, in ISO 8601 format. This field is nullable.
Maximum length: 255
moduleModelRequired within parentExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item module
module info (Required)
namestringRequired within parentRepresents the unique name of the Scoring Rule.
Maximum length: 25
signal_rulesJSONOptional
signal_rules (anyOf 1)arrayAlternativeTouch points based score configurations; applicable only for Leads and Contacts modules
Maximum items: 250
signal_rules (anyOf 1)[]ModelEach itemExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item signal rules null item
signal_rules (anyOf 2)nullAlternativeTouch points based score configurations; applicable only for Leads and Contacts modules
Maximum items: 250
signal_rules (anyOf 2)[]ModelEach itemExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item signal rules null item

Referenced models: Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item created by, Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item custom fields null item, Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item field rules item, Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item layout, Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item modified by, Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item module, Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item signal rules null item

Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules info
FieldTypePresenceDescription and constraints
$objectRootNested schema for info
Additional keys: not allowed
countJSONOptional
count (anyOf 1)integerAlternativeTotal number of scoring rules returned in the current response page.
Format: int32
count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
more_recordsbooleanOptionalIndicates whether additional scoring rules are available beyond the current page.
pageJSONOptional
page (anyOf 1)integerAlternativeCurrent page number in the paginated response.
Format: int32
page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
per_pageJSONOptional
per_page (anyOf 1)integerAlternativeno of rules need to be fetched per_page
Format: int32
per_page (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item created by
FieldTypePresenceDescription and constraints
$objectRootNested schema for created_by
Additional keys: not allowed
idstringOptionalUnique numeric ID of the user who created the scoring rule.
Maximum length: 25
namestringOptionalFull name of the user who created the scoring rule.
Maximum length: 255
zuidstringOptionalZoho unique ID (ZUID) of the user who created the scoring rule.
Maximum length: 255
Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item custom fields null item
FieldTypePresenceDescription and constraints
$objectRootRepresents the configuration for a custom field associated with a Scoring Rule, including the referenced score field.
Additional keys: not allowed
api_namestringOptionalRepresents the API name of the custom field associated with the Scoring Rule.
Maximum length: 100
field_labelstringOptionalRepresents the display name of the custom field. Required when creating a Scoring Rule.
Maximum length: 100
idstringOptionalRepresents the unique ID of the custom field associated with the Scoring Rule.
Maximum length: 25
reference_fieldModelOptionalExpand Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item custom fields null item reference field
It will hold the referenced score field info. (Required for POST)

Referenced models: Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item custom fields null item reference field

Scoring Rules — scoring Rules get Scoring Rules — response body — info, scoring rules scoring rules item module
FieldTypePresenceDescription and constraints
$objectRootRepresents the module associated with a Scoring Rule, including the module API name and unique ID.
Additional keys: not allowed
api_namestringOptionalRepresents the API name of the module associated with the Scoring Rule.
Maximum length: 255
idstringOptionalRepresents the unique ID of the module associated with the Scoring Rule.
Maximum length: 25

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