Skip to content

Zoho: List fields metadata

Zoho fields.getFields: arguments, response, policy and SDK examples.

← Fields operations · Get started

Operation zoho.getfields

Provider route: GET /crm/v8/settings/fields. 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["fields"]["getFields"]>[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.fields.getFields(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.fields.get_fields(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 parentThe API name of the module to which the field belongs.
Maximum length: 30
query.includestringOptionalTo include additional information about the field’s permissions to update.
One of: allowed_permissions_to_update
Maximum length: 50
query.typestringOptionalOne of: all, unused, used
Maximum length: 10

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 response body for the field metadata request, containing an array of field configuration objects.
Additional keys: not allowed
$ (anyOf 1).fieldsarrayRequired within parentRepresents the list of field metadata objects retrieved for the specified module.
Maximum items: 100
$ (anyOf 1).fields[]ModelEach itemExpand Get field metadata by ID — response body — fields item
$ (anyOf 2)nullAlternative

Referenced models: Get field metadata by ID — response body — fields item

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

Get field metadata by ID — response body — fields item association details lookup field, related field
FieldTypePresenceDescription and constraints
$objectRootRepresents the association details of the lookup field, including the related field and the lookup field configuration in the connected module.
Additional keys: not allowed
lookup_fieldobjectRequired within parentRepresents the details of the lookup field.
Additional keys: not allowed
lookup_field.api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
lookup_field.idstringRequired within parentId of the resource.
Format: int64
related_fieldobjectRequired within parentRepresents the details of the related field.
Additional keys: not allowed
related_field.api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
related_field.idstringRequired within parentId of the resource.
Format: int64
Get field metadata by ID — response body — fields item multiselectlookup connected details, linking details, related list connected details
FieldTypePresenceDescription and constraints
$objectRootRepresents the connected details for the multi-module lookup.
Additional keys: not allowed
fieldModelRequired within parentExpand Get field metadata by ID — response body — fields item multiselectlookup connected details, linking details, related list connected details field
layoutsarrayRequired within parentRepresents the list of layouts associated with the multi-module lookup.
Maximum items: 100
layouts[]objectEach itemRepresents the layout details for the multi-module lookup.
Additional keys: not allowed
layouts[].api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
layouts[].idstringRequired within parentId of the resource.
Format: int64
moduleModelRequired within parentExpand Get field metadata by ID — response body — fields item multiselectlookup connected details, linking details, related list connected details module

Referenced models: Get field metadata by ID — response body — fields item multiselectlookup connected details, linking details, related list connected details field, Get field metadata by ID — response body — fields item multiselectlookup connected details, linking details, related list connected details module

Get field metadata by ID — response body — fields item multiselectlookup connected details, linking details, related list linking details connected lookup field
FieldTypePresenceDescription and constraints
$objectRootRepresents the connected lookup field details for the multi-module lookup.
Additional keys: not allowed
api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
field_labelstringRequired within parentRepresents the field label of the connected lookup field.
Maximum length: 100
idstringRequired within parentId of the resource.
Format: int64
Get field metadata by ID — response body — fields item convert mapping
FieldTypePresenceDescription and constraints
$objectRootRepresents the convert mapping details of the field.
Additional keys: not allowed
AccountsJSONOptional
Accounts (anyOf 1)stringAlternativeRepresents the mapping details for Contacts field name.
Maximum length: 100
Accounts (anyOf 2)nullAlternativeRepresents the null if no information is available.
ContactsJSONOptional
Contacts (anyOf 1)stringAlternativeRepresents the mapping details for Contacts field name.
Maximum length: 100
Contacts (anyOf 2)nullAlternativeRepresents the null if no information is available.
DealsJSONOptional
Deals (anyOf 1)stringAlternativeRepresents the mapping details for Contacts field name.
Maximum length: 100
Deals (anyOf 2)nullAlternativeRepresents the null if no information is available.
InvoicesJSONOptional
Invoices (anyOf 1)stringAlternativeRepresents the mapping details for Invoices field name.
Maximum length: 100
Invoices (anyOf 2)nullAlternativeRepresents the null if no information is available.
Sales_OrdersJSONOptional
Sales_Orders (anyOf 1)stringAlternativeRepresents the mapping details for Sales Orders field name.
Maximum length: 100
Sales_Orders (anyOf 2)nullAlternativeRepresents the null if no information is available.
Get field metadata by ID — response body — fields item child fields array item field
FieldTypePresenceDescription and constraints
$objectRootRepresents the details of the child Address field.
Additional keys: not allowed
api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
idstringRequired within parentId of the resource.
Format: int64
namestringRequired within parentRepresents the name of the child Address field.
Maximum length: 100
Get field metadata by ID — response body — fields item formula Represents the formula details of the field
FieldTypePresenceDescription and constraints
$objectRootRepresents the formula details of the field.
Additional keys: not allowed
assume_defaultbooleanOptionalIndicates if the formula should assume default values.
dynamicbooleanOptionalIndicates if the formula is dynamic.
return_typestringOptionalRepresents the return type of the formula.
Maximum length: 50
stop_compute_conditionallybooleanOptionalIndicates if the formula computation should stop conditionally.
sub_return_typestringOptionalRepresents the sub-type of the formula return value, such as the specific string subtype when the return type is a string.
Maximum length: 50
Get field metadata by ID — response body — fields item global picklist api name, id
FieldTypePresenceDescription and constraints
$objectRootRepresents the global picklist details linked to the field, identified by its API name and unique ID.
Additional keys: not allowed
api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
idstringRequired within parentId of the resource.
Format: int64
Get field metadata by ID — response body — fields item history tracking duration configuration, duration configured field, followed fields, module, related list name
FieldTypePresenceDescription and constraints
$objectRootRepresents the history tracking details of the field.
Additional keys: not allowed
duration_configurationstringRequired within parentRepresents the duration configuration for history tracking.
Maximum length: 120
duration_configured_fieldobjectRequired within parentRepresents the duration configured field details for history tracking.
Additional keys: not allowed
duration_configured_field.api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
duration_configured_field.idstringRequired within parentId of the resource.
Format: int64
followed_fieldsarrayRequired within parentRepresents the list of fields being followed for history tracking.
Maximum items: 100
followed_fields[]objectEach itemRepresents the details of a followed field.
Additional keys: not allowed
followed_fields[].api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
followed_fields[].idstringRequired within parentId of the resource.
Format: int64
moduleobjectRequired within parentRepresents the module details for history tracking.
Additional keys: not allowed
module.api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
module.idstringRequired within parentId of the resource.
Format: int64
related_list_namestringRequired within parentRepresents the name of the related list for history tracking.
Maximum length: 100
Get field metadata by ID — response body — fields item multiselectlookup connected details, linking details, related list linking details lookup field
FieldTypePresenceDescription and constraints
$objectRootRepresents the lookup field details for the multi-module lookup.
Additional keys: not allowed
api_namestringRequired within parentAPI name of the resource. It will start with alphabets and can contain alphanumeric characters and underscores.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
field_labelstringRequired within parentRepresents the field label of the lookup field.
Maximum length: 100
idstringRequired within parentId of the resource.
Format: int64

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