Skip to content

Zoho: Custom View creation

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

← Custom views operations · Get started

Operation zoho.createcustomview

Provider route: POST /crm/v8/settings/custom_views. 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"]["createCustomView"]>[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.createCustomView(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.create_custom_view(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: 25
bodyobjectRequired within parentRepresents the request body envelope for creating one or more Custom Views.
Additional keys: not allowed
body.custom_viewsarrayRequired within parentSpecify the list of Custom Views to create.
Maximum items: 200
body.custom_views[]ModelEach itemExpand Custom View creation — request body — body custom views item

Referenced models: Custom View creation — request body — body custom views item

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)objectAlternativeRepresents the bulk create success response schema for Custom View creation.
Additional keys: not allowed
$ (anyOf 1).custom_viewsarrayRequired within parentRepresents the list of Custom Views created successfully.
Maximum items: 200
$ (anyOf 1).custom_views[]ModelEach itemExpand Custom View creation — response body — custom views custom views item
$ (anyOf 2)objectAlternativeRepresents the multi-status response for bulk Custom View creation, containing a mix of success and failure items.
Additional keys: not allowed
$ (anyOf 2).custom_viewsarrayRequired within parentRepresents the list of Custom View creation results, including both successful and failed items.
Maximum items: 200
Minimum items: 2
$ (anyOf 2).custom_views[]JSONEach itemRepresents a creation result item, which can be either a success or a failure response.
$ (anyOf 2).custom_views[] (anyOf 1)ModelAlternativeExpand Custom View creation — response body — custom views custom views item
$ (anyOf 2).custom_views[] (anyOf 2)ModelAlternativeExpand Custom View creation — response body — custom views custom views item value
$ (anyOf 2).custom_views (allOf 1)JSONAll variants applyRepresents a successful creation item for a Custom View.
$ (anyOf 2).custom_views (allOf 2)JSONAll variants applyRepresents a creation failure item for a Custom View.

Referenced models: Custom View creation — response body — custom views custom views item value, Custom View creation — response body — custom views custom views item

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

Custom View creation — request body — body custom views item
FieldTypePresenceDescription and constraints
$objectRootRepresents the configuration for creating a Custom View, including its name, filter criteria, field list, sort configuration, and access control settings.
Additional keys: not allowed
access_typestringRequired within parentRepresents the access type for 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.
One of: shared, public, only_to_me
categorystringOptionalRepresents the category for 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.
One of: public_views, other_users_views, shared_with_me, created_by_me
criteriaModelOptionalExpand Custom Views — request body — body custom views item criteria
cross_filtersModelOptionalExpand Custom Views — request body — body custom views item cross filters
favoritenull or integerOptionalRepresents the favorite order for the Custom View. A null value indicates the view is not marked as a favorite.
Format: int32
fieldsModelRequired within parentExpand Custom Views — request body — body custom views item fields
lockedbooleanOptionalIndicates whether the Custom View is locked.
Possible values:
**true** - The view is locked.
**false** - The view is not locked.
namestringRequired within parentRepresents the name of the Custom View.
Maximum length: 50
shared_toModelOptionalExpand Custom Views — request body — body custom views item shared to
sort_byJSONOptionalRepresents the field used to sort the records in the Custom View.
sort_by (anyOf 1)ModelAlternativeExpand Sort Order — request body — body custom views item sort by
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 for the Custom View.
Possible values:
**asc** - Ascending order.
**desc** - Descending order.
One of: asc, desc
sort_order (anyOf 2)nullAlternativeRepresents no sort order applied to the Custom View.
wrap_textbooleanOptionalIndicates whether text wrapping is enabled for the Custom View.
Possible values:
**true** - Text wrapping is enabled.
**false** - Text wrapping is disabled.

Referenced models: Custom Views — request body — body custom views item criteria, Custom Views — request body — body custom views item cross filters, Custom Views — request body — body custom views item fields, Sort Order — request body — body custom views item sort by, Custom Views — request body — body custom views item shared to

Custom View creation — response body — custom views custom views item value
FieldTypePresenceDescription and constraints
$JSONRootRepresents the creation failure details for a Custom View, containing the error code, status, message, and additional context.
$ (anyOf 1)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Data For Update CV
$ (anyOf 2)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: MANDATORY NOT FOUND, status: error
$ (anyOf 3)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: DUPLICATE DATA, status: error
$ (anyOf 4)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error — Not Allowed For Update CVBy Id
$ (anyOf 5)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATAS, message: Special Characters are not allowed, status: error
$ (anyOf 6)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Index Fav
$ (anyOf 7)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Id Fav
$ (anyOf 8)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error — Not Allowed Details Update
$ (anyOf 9)ModelAlternativeExpand CustomView creation — response body — custom_views / custom_views / item / value / code: LIMIT EXCEEDED, status: error
$ (anyOf 10)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT FIELD MISSING, status: error
$ (anyOf 11)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT MISMATCH, status: error — Field Comparator Mismatch
$ (anyOf 12)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT MISMATCH, status: error — Field Value Mismatch
$ (anyOf 13)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT MISMATCH, status: error — Comparator Value Mismatch
$ (anyOf 14)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Comparator
$ (anyOf 15)ModelAlternativeExpand Custom Views — response body — custom_views / custom_views / item / value / code: LOOKUP LIMIT EXCEEDED, status: error

Referenced models: Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT MISMATCH, status: error — Comparator Value Mismatch, Custom Views — response body — custom_views / custom_views / item / value / code: DUPLICATE DATA, status: error, Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT MISMATCH, status: error — Field Comparator Mismatch, Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT FIELD MISSING, status: error, Custom Views — response body — custom_views / custom_views / item / value / code: DEPENDENT MISMATCH, status: error — Field Value Mismatch, Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Comparator, Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Data For Update CV, Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Id Fav, Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATA, status: error — Invalid Index Fav, CustomView creation — response body — custom_views / custom_views / item / value / code: LIMIT EXCEEDED, status: error, Custom Views — response body — custom_views / custom_views / item / value / code: LOOKUP LIMIT EXCEEDED, status: error, Custom Views — response body — custom_views / custom_views / item / value / code: MANDATORY NOT FOUND, status: error, Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error — Not Allowed Details Update, Custom Views — response body — custom_views / custom_views / item / value / code: NOT ALLOWED, status: error — Not Allowed For Update CVBy Id, Custom Views — response body — custom_views / custom_views / item / value / code: INVALID DATAS, message: Special Characters are not allowed, status: error

Custom Views — request body — body custom views item criteria
FieldTypePresenceDescription and constraints
$JSONRootRepresents the filter criteria of the Custom View
$ (anyOf 1)ModelAlternativeExpand Related Records — request body — query filters
$ (anyOf 2)nullAlternativeNo criteria applied - the custom view returns all records

Referenced models: Related Records — request body — query filters

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