Skip to content

Zoho: get a picklist field option

Zoho pickListValues.getPickListValuesByPickListValueid: arguments, response, policy and SDK examples.

← Pick list values operations · Get started

Operation zoho.getpicklistvaluesbypicklistvalueid

Provider route: GET /crm/v8/settings/fields/{fieldId}/pick_list_values/{pickListValueId}. 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["pickListValues"]["getPickListValuesByPickListValueid"]>[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.pickListValues.getPickListValuesByPickListValueid(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.pick_list_values.get_pick_list_values_by_pick_list_valueid(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.fieldIdstringRequired within parentFormat: int64
Minimum length: 1
path.pickListValueIdstringRequired within parentFormat: int64
Maximum length: 255
queryobjectRequired within parentAdditional keys: not allowed
query.modulestringRequired within parentMaximum length: 50
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)ModelAlternativeExpand get a picklist field option — response body — pick list values
$ (anyOf 2)nullAlternative

Referenced models: get a picklist field option — response body — pick list values

get a picklist field option — response body — pick list values
FieldTypePresenceDescription and constraints
$objectRootSuccessful response containing the list of picklist options that match the specified pick list value ID for the given field.
Additional keys: not allowed
pick_list_valuesarrayRequired within parentPickList option of the mention picklist unique Id
Maximum items: 1
Minimum items: 1
pick_list_values[]ModelEach itemExpand get a picklist field option — response body — pick list values pick list values item

Referenced models: get a picklist field option — response body — pick list values pick list values item

get a picklist field option — response body — pick list values pick list values item
FieldTypePresenceDescription and constraints
$objectRootFull metadata for a picklist option, including unique ID, actual/reference/display values, sequence order, usage type (used/unused), optional color code, and associated layouts.
Additional keys: not allowed
actual_valuestringRequired within parentActual value of the picklist option.
Maximum length: 120
colour_codeJSONRequired within parent
colour_code (anyOf 1)stringAlternativeColor code of the picklist option when the picklist field in color code enabled
Maximum length: 9
colour_code (anyOf 2)nullAlternativeColor code of the picklist option when the picklist field in color code enabled
Maximum length: 9
display_valuestringRequired within parentDisplay value of the picklist option which are localised or translated
Maximum length: 120
idstringRequired within parentUnique Id of the picklist option
Format: int64
layout_associationsJSONRequired within parent
layout_associations (anyOf 1)arrayAlternativeLayout Association of the picklist option
Maximum items: 6
Minimum items: 0
layout_associations (anyOf 1)[]ModelEach itemExpand get a picklist field option — response body — pick list values pick list values item layout associations Layout Association of the picklist option item
layout_associations (anyOf 2)nullAlternativeLayout Association of the picklist option
Maximum items: 6
Minimum items: 0
layout_associations (anyOf 2)[]ModelEach itemExpand get a picklist field option — response body — pick list values pick list values item layout associations Layout Association of the picklist option item
reference_valuestringRequired within parentReference value of the picklist option which are localised or updated
Maximum length: 120
sequence_numberJSONRequired within parent
sequence_number (anyOf 1)integerAlternativesort order of the option respective to field
Format: int32
sequence_number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
typestringRequired within parentPresence of the option in layouts and in the module
Known values: used, unused

Referenced models: get a picklist field option — response body — pick list values pick list values item layout associations Layout Association of the picklist option item

get a picklist field option — response body — pick list values pick list values item layout associations Layout Association of the picklist option item
FieldTypePresenceDescription and constraints
$objectRootIdentifies a layout where the picklist option is available, including the layout API name, display name, and unique association ID.
Additional keys: not allowed
api_namestringRequired within parentApi Name of the layout
Maximum length: 255
idstringRequired within parentUnique Id of the picklist option
Format: int64
namestringRequired within parentName of the layout
Maximum length: 255

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