Skip to content

Zoho: Get Custom View By Id

Zoho customViews.getCustomViewById: arguments, response, policy and SDK examples.

← Custom views operations · Get started

Operation zoho.getcustomviewbyid

Provider route: GET /crm/v8/settings/custom_views/{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["customViews"]["getCustomViewById"]>[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.customViews.getCustomViewById(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.custom_views.get_custom_view_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 parentFormat: int64
Maximum length: 25
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentMaximum length: 25
query.include_inner_detailsstringOptionalMaximum length: 50

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 Get Custom View By Id — response body — custom views, info
$ (anyOf 2)nullAlternative

Referenced models: Get Custom View By Id — response body — custom views, info

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

Get Custom View By Id — response body — custom views, info
FieldTypePresenceDescription and constraints
$objectRootGet a specific custom view of a module using custom view ID
Additional keys: not allowed
custom_viewsarrayRequired within parentList of custom views
Maximum items: 1
custom_views[]JSONEach itemCustom view detail item
custom_views[] (allOf 1)ModelAll variants applyExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me
custom_views[] (allOf 2)JSONAll variants applyCustom view item with required fields
infoJSONRequired within parentAdditional information about the response
info (allOf 1)ModelAll variants applyExpand Get All Custom Views — response body — info count, default, more records, page, per page, translation
info (allOf 2)JSONAll variants applyCustom view info with required fields

Referenced models: Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me, Get All Custom Views — response body — info count, default, more records, page, per page, translation

Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of a Custom View returned in the response, including its filter criteria, sort configuration, field list, and access control settings.
Additional keys: not allowed
$modified_criteriabooleanOptionalIndicates whether the filter criteria of the Custom View has been modified since it was originally created.
Possible values:
**true** - The criteria has been modified.
**false** - The criteria has not been modified.
access_typestringOptionalRepresents the access type of the Custom View.
Possible values:
**shared** - The view is shared with selected users, roles, groups, or territories.
**public** - The view is accessible to all users in the organization.
**only_to_me** - The view is private and accessible only to the creator.
Known values: shared, public, only_to_me
categorystringOptionalRepresents the category of the Custom View.
Possible values:
**public_views** - Views accessible to all users in the organization.
**other_users_views** - Views created by other users in the organization.
**shared_with_me** - Views shared with the current user.
**created_by_me** - Views created by the current user.
Known values: public_views, other_users_views, shared_with_me, created_by_me
created_byJSONOptional
created_by (anyOf 1)ModelAlternativeExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me created by id, name
created_by (anyOf 2)nullAlternativeNo user associated
created_timeJSONOptional
created_time (anyOf 1)stringAlternativeRepresents the date and time when the Custom View creation occurred.
Format: date-time
created_time (anyOf 2)nullAlternativeRepresents the date and time when the Custom View creation occurred.
Format: date-time
criteriaModelOptionalExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me criteria
cross_filtersModelOptionalExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me cross filters
defaultbooleanOptionalIndicates whether the Custom View is set as the default view for the module.
Possible values:
**true** - This is the default view.
**false** - This is not the default view.
display_valuestringOptionalRepresents the display label of the Custom View as shown to users.
Maximum length: 50
favoriteJSONOptional
favorite (anyOf 1)nullAlternativeRepresents the favorite order of the Custom View. A null value indicates the view is not marked as a favorite.
Format: int32
favorite (anyOf 2)JSONAlternative
favorite (anyOf 2) (anyOf 1)integerAlternativeRepresents the favorite order of the Custom View. A null value indicates the view is not marked as a favorite.
Format: int32
favorite (anyOf 2) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
fieldsModelOptionalExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me fields
idstringOptionalRepresents the unique ID of the Custom View.
Format: int64
Maximum length: 25
last_accessed_timeJSONOptional
last_accessed_time (anyOf 1)stringAlternativeRepresents the date and time when the Custom View was last accessed. A null value indicates the view has not been accessed.
Format: date-time
last_accessed_time (anyOf 2)nullAlternativeRepresents the date and time when the Custom View was last accessed. A null value indicates the view has not been accessed.
Format: date-time
lockedbooleanOptionalIndicates whether the Custom View is locked and cannot be modified by users.
Possible values:
**true** - The view is locked.
**false** - The view is not locked.
modified_byJSONOptional
modified_by (anyOf 1)ModelAlternativeExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me created by id, name
modified_by (anyOf 2)nullAlternativeNo user associated
modified_timeJSONOptional
modified_time (anyOf 1)stringAlternativeModification Time of the Custom View
Format: date-time
modified_time (anyOf 2)nullAlternativeModification Time of the Custom View
Format: date-time
namestringOptionalRepresents the name of the Custom View.
Maximum length: 50
offlinebooleanOptionalIndicates whether the Custom View is available in offline mode.
Possible values:
**true** - The view is available offline.
**false** - The view is not available offline.
shared_toModelOptionalExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me shared to
sort_byJSONOptionalRepresents the field used to sort the records in the Custom View.
sort_by (anyOf 1)ModelAlternativeExpand Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me sort by api name, id
sort_by (anyOf 2)nullAlternativeNo sort is applied
sort_orderJSONOptionalRepresents the sort order applied to the records in the Custom View.
sort_order (anyOf 1)stringAlternativeRepresents the sort order applied to the Custom View.
Possible values:
**asc** - Ascending order.
**desc** - Descending order.
Known values: asc, desc
sort_order (anyOf 2)nullAlternativeRepresents no sort order applied to the Custom View.
system_definedbooleanOptionalIndicates whether the Custom View is a system-defined view created by Zoho CRM.
Possible values:
**true** - The view is system-defined.
**false** - The view is user-defined.
system_nameJSONOptional
system_name (anyOf 1)stringAlternativeRepresents the system-defined name of the Custom View. A null value indicates the view does not have a system name.
Maximum length: 50
system_name (anyOf 2)nullAlternativeRepresents the system-defined name of the Custom View. A null value indicates the view does not have a system name.
Maximum length: 50

Referenced models: Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me created by id, name, Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me criteria, Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me cross filters, Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me fields, Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me sort by api name, id, Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me shared to

Get All Custom Views — response body — custom_views / item / access_type: shared, public, only to me, category: public views, other users views, shared with me, created by me created by id, name
FieldTypePresenceDescription and constraints
$objectRootRepresents a user reference containing the user ID and display name.
Additional keys: not allowed
idstringRequired within parentRepresents the unique ID of the user.
Format: int64
Maximum length: 25
namestringRequired within parentRepresents the display name of the user.
Maximum length: 255

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