Skip to content

Zoho: Related Lists

Zoho relatedLists.getRelatedLists: arguments, response, policy and SDK examples.

← Related lists operations · Get started

Operation zoho.getrelatedlists

Provider route: GET /crm/v8/settings/related_lists. 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["relatedLists"]["getRelatedLists"]>[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.relatedLists.getRelatedLists(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.related_lists.get_related_lists(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentMaximum length: 50
Minimum length: 1
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
query.layout_idstringOptionalFormat: int64
query.statusstringOptionalOne of: visible, scheduled_for_deletion, user_hidden
query.extra_propertiesbooleanOptionalDefault: false
query.include_inner_detailsstringOptionalMaximum length: 255
Minimum length: 1

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)objectAlternativeResponse containing the related list configurations for the specified module.
Additional keys: not allowed
$ (anyOf 1).related_listsarrayRequired within parentArray of related list configurations for the specified module and layout.
Maximum items: 1000
Minimum items: 1
$ (anyOf 1).related_lists[]ModelEach itemExpand Related Lists — response body — related lists related lists item
$ (anyOf 2)nullAlternative

Referenced models: Related Lists — response body — related lists related lists item

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

Related Lists — response body — related lists related lists item
FieldTypePresenceDescription and constraints
$JSONRootRepresents the base configuration metadata for a related list panel in a CRM module.
$ (anyOf 1)ModelAlternativeExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion, type: multiselectlookup
$ (anyOf 2)ModelAlternativeExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion

Referenced models: Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion, type: multiselectlookup, Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion

Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion
FieldTypePresenceDescription and constraints
$objectRootConfiguration metadata for a standard (non-multiselectlookup) related list.
Additional keys: not allowed
_layout_specific_propertiesJSONOptional
_layout_specific_properties (anyOf 1)arrayAlternativeLayout-specific configuration overrides for this related list.
Maximum items: 25
Minimum items: 0
_layout_specific_properties (anyOf 1)[]ModelEach itemExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion layout specific properties null item
_layout_specific_properties (anyOf 2)nullAlternativeLayout-specific configuration overrides for this related list.
Maximum items: 25
Minimum items: 0
_layout_specific_properties (anyOf 2)[]ModelEach itemExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion layout specific properties null item
actionJSONRequired within parent
action (anyOf 1)stringAlternativeAction type supported for adding records to the related list.
Maximum length: 50
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
action (anyOf 2)nullAlternativeAction type supported for adding records to the related list.
Maximum length: 50
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
api_namestringRequired within parentAPI name identifier for the related list.
Maximum length: 100
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
connectedlookupApiNamestringOptionalAPI name of the connected lookup field for this related list.
Maximum length: 100
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
connectedmoduleJSONOptional
connectedmodule (anyOf 1)stringAlternativeAPI name of the connected module for this lookup relationship.
Maximum length: 250
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
connectedmodule (anyOf 2)nullAlternativeAPI name of the connected module for this lookup relationship.
Maximum length: 250
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
customize_display_labelbooleanRequired within parentIndicates whether the display label of this related list can be customized. Possible values: **true**, **false**.
customize_fieldsbooleanRequired within parentIndicates whether the field selection for this related list can be customized. Possible values: **true**, **false**.
customize_sortbooleanRequired within parentIndicates whether the sort configuration for this related list can be customized. Possible values: **true**, **false**.
display_labelstringRequired within parentUser-visible label displayed for the related list panel.
Maximum length: 50
Minimum length: 1
fieldsJSONOptional
fields (anyOf 1)arrayAlternativeFields displayed in the related list (null if not configured).
Maximum items: 50
Minimum items: 0
fields (anyOf 1)[]ModelEach itemExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion fields null item
fields (anyOf 2)nullAlternativeFields displayed in the related list (null if not configured).
Maximum items: 50
Minimum items: 0
fields (anyOf 2)[]ModelEach itemExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion fields null item
hrefJSONRequired within parent
href (anyOf 1)stringAlternativeRelative URL template for navigating to the related list records.
Maximum length: 200
Minimum length: 1
href (anyOf 2)nullAlternativeRelative URL template for navigating to the related list records.
Maximum length: 200
Minimum length: 1
idstringRequired within parentUnique identifier of the related list configuration.
Format: int64
linkingmoduleJSONOptional
linkingmodule (anyOf 1)stringAlternativeAPI name of the linking module for this relationship.
Maximum length: 250
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
linkingmodule (anyOf 2)nullAlternativeAPI name of the linking module for this relationship.
Maximum length: 250
Minimum length: 1
Pattern: ^[A-Za-z0-9_]+$
moduleJSONRequired within parentModule information for the related list. Refer to the [Get Modules](https://www.zoho.com/crm/developer/docs/api/v8/modules-api.html) resource for details.
module (anyOf 1)ModelAlternativeExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion module api name, id, plural label
module (anyOf 2)nullAlternativeRepresents the null state when no module is associated with this related list.
namestringRequired within parentInternal name of the related list.
Maximum length: 100
Minimum length: 1
Pattern: ^[A-Za-z0-9_ \-]+$
parent_related_listsJSONOptional
parent_related_lists (anyOf 1)arrayAlternativeList of parent related list references that this related list depends on.
Maximum items: 4
Minimum items: 0
parent_related_lists (anyOf 1)[]ModelEach itemExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion parent related lists null item
parent_related_lists (anyOf 2)nullAlternativeList of parent related list references that this related list depends on.
Maximum items: 4
Minimum items: 0
parent_related_lists (anyOf 2)[]ModelEach itemExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion parent related lists null item
personality_namestringOptionalInternal personality identifier associated with this related list configuration.
Maximum length: 100
Minimum length: 1
record_operationsModelOptionalExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion record operations
sequence_numberstringRequired within parentDisplay sequence position of the related list in the layout.
Format: int32
sort_byJSONOptionalField used for sorting the related list (null if no sorting configured).
sort_by (anyOf 1)ModelAlternativeExpand Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion sort by api name, id
sort_by (anyOf 2)nullAlternativeNo sorting is applied.
sort_orderJSONOptional
sort_order (anyOf 1)stringAlternativeSort direction applied to the related list (null if no sorting configured).
Known values: asc, desc
sort_order (anyOf 2)nullAlternativeSort direction applied to the related list (null if no sorting configured).
Known values: asc, desc
statusstringRequired within parentVisibility status of the related list. Possible values: **visible**, **user_hidden**, **scheduled_for_deletion**.
Known values: visible, user_hidden, scheduled_for_deletion
typestringRequired within parentRelationship type of the related list.
Known values: default, custom, custom_lookup, custom_related_list, queries, grouped, combined_view, slyteui
visibilityJSONOptional
visibility (anyOf 1)integerAlternativeNumeric visibility flag for the related list.
Format: int32
Minimum: 0
visibility (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion fields null item, Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion layout specific properties null item, Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion module api name, id, plural label, Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion parent related lists null item, Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion record operations, Related Lists — response body — related_lists / related_lists / item / status: visible, user hidden, scheduled for deletion sort by api name, id

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