Skip to content

Zoho: Get a Single Global Picklist by ID

Zoho globalPicklists.getSingleGlobalPicklists: arguments, response, policy and SDK examples.

← Global picklists operations · Get started

Operation zoho.getsingleglobalpicklists

Provider route: GET /crm/v8/settings/global_picklists/{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["globalPicklists"]["getSingleGlobalPicklists"]>[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.globalPicklists.getSingleGlobalPicklists(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.global_picklists.get_single_global_picklists(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
queryobjectOptionalAdditional keys: not allowed
query.includearrayOptionalMaximum items: 3
query.include[]stringEach itemAllowed values for including related resources in the response.
One of: used_in_modules, pick_list_values, associated_fields_count
query.include_inner_detailsstringOptionalOne of: used_in_modules.plural_label
query.fieldsarrayOptionalMaximum items: 20
Minimum items: 1
query.fields[]stringEach itemThe api_name of a global picklist key to be returned in the response.
Maximum length: 50
Pattern: ^[A-Za-z][A-Za-z0-9_]*$

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 object containing an array of global picklists.
Additional keys: not allowed
$ (anyOf 1).global_picklistsarrayRequired within parentArray of global picklists with their properties.
Maximum items: 1
$ (anyOf 1).global_picklists[]objectEach itemGlobal picklist object with details. Every key listed here is returned by default. When the ‘fields’ query parameter is used, only the requested keys along with ‘id’ are present in the response, hence ‘id’ is the only key that is always returned.
Additional keys: not allowed
$ (anyOf 1).global_picklists[].actual_labelstringOptionalActual label of the global picklist.
Maximum length: 50
$ (anyOf 1).global_picklists[].api_namestringOptionalAPI 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_]*$
$ (anyOf 1).global_picklists[].associated_fields_countJSONOptional
$ (anyOf 1).global_picklists[].associated_fields_count (anyOf 1)integerAlternativeNumber of fields associated with this global picklist.
Format: int32
$ (anyOf 1).global_picklists[].associated_fields_count (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
$ (anyOf 1).global_picklists[].created_byJSONOptionalUser who created the global picklist.
$ (anyOf 1).global_picklists[].created_by (anyOf 1)objectAlternativeUser object with name and id.
Additional keys: not allowed
$ (anyOf 1).global_picklists[].created_by (anyOf 1).idstringOptionalId of the resource.
Format: int64
$ (anyOf 1).global_picklists[].created_by (anyOf 1).namestringOptionalName of the user.
Maximum length: 255
$ (anyOf 1).global_picklists[].created_by (anyOf 2)nullAlternativeNull if no user information is available.
$ (anyOf 1).global_picklists[].created_timeJSONOptional
$ (anyOf 1).global_picklists[].created_time (anyOf 1)stringAlternativeCreation timestamp of the global picklist.
Format: date-time
$ (anyOf 1).global_picklists[].created_time (anyOf 2)nullAlternativeCreation timestamp of the global picklist.
Format: date-time
$ (anyOf 1).global_picklists[].customizablebooleanOptionalIndicates if the global picklist is customizable.
$ (anyOf 1).global_picklists[].descriptionJSONOptional
$ (anyOf 1).global_picklists[].description (anyOf 1)stringAlternativeDescription of the global picklist.
Maximum length: 1000
$ (anyOf 1).global_picklists[].description (anyOf 2)nullAlternativeDescription of the global picklist.
Maximum length: 1000
$ (anyOf 1).global_picklists[].display_labelstringOptionalDisplay label of the global picklist.
Maximum length: 50
$ (anyOf 1).global_picklists[].idstringRequired within parentId of the resource.
Format: int64
$ (anyOf 1).global_picklists[].modified_byJSONOptionalUser who last modified the global picklist.
$ (anyOf 1).global_picklists[].modified_by (anyOf 1)objectAlternativeUser object with name and id.
Additional keys: not allowed
$ (anyOf 1).global_picklists[].modified_by (anyOf 1).idstringOptionalId of the resource.
Format: int64
$ (anyOf 1).global_picklists[].modified_by (anyOf 1).namestringOptionalName of the user.
Maximum length: 255
$ (anyOf 1).global_picklists[].modified_by (anyOf 2)nullAlternativeNull if no user information is available.
$ (anyOf 1).global_picklists[].modified_timeJSONOptional
$ (anyOf 1).global_picklists[].modified_time (anyOf 1)stringAlternativeLast modification timestamp of the global picklist.
Format: date-time
$ (anyOf 1).global_picklists[].modified_time (anyOf 2)nullAlternativeLast modification timestamp of the global picklist.
Format: date-time
$ (anyOf 1).global_picklists[].pick_list_valuesarrayOptionalArray of picklist values.
Maximum items: 5000
$ (anyOf 1).global_picklists[].pick_list_values[]ModelEach itemExpand Get All Global Picklists — response body — global picklists global picklists item pick list values item
$ (anyOf 1).global_picklists[].pick_list_values_sorted_lexicallybooleanOptionalIndicates if picklist values are sorted lexically.
$ (anyOf 1).global_picklists[].presencebooleanOptionalIndicates if the global picklist is present. false if global picklist is in delete scheduler.
$ (anyOf 1).global_picklists[].sourcestringOptionalSource of the global picklist.
Known values: crm, platform_plugin, marketplace_plugin
Maximum length: 50
$ (anyOf 1).global_picklists[].used_in_modulesarrayOptionalArray of modules using this global picklist.
Maximum items: 100
$ (anyOf 1).global_picklists[].used_in_modules[]objectEach itemModule object with details.
Additional keys: not allowed
$ (anyOf 1).global_picklists[].used_in_modules[].api_namestringOptionalAPI 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_]*$
$ (anyOf 1).global_picklists[].used_in_modules[].idstringOptionalId of the resource.
Format: int64
$ (anyOf 1).global_picklists[].used_in_modules[].plural_labelstringOptionalPlural label of the module.
Maximum length: 25
$ (anyOf 2)nullAlternative

Referenced models: Get All Global Picklists — response body — global picklists global picklists item pick list values item

Get All Global Picklists — response body — global picklists global picklists item pick list values item
FieldTypePresenceDescription and constraints
$objectRootPicklist value object.
Additional keys: not allowed
actual_valuestringOptionalActual value of the picklist field.
Maximum length: 120
display_valuestringRequired within parentThe picklist display value(translated value if translation enabled).
Maximum length: 120
idstringRequired within parentId of the resource.
Format: int64
reference_valuestringRequired within parentReference value of the picklist field.
Maximum length: 120
sequence_numberJSONRequired within parent
sequence_number (anyOf 1)integerAlternativeSequence number of the picklist value.
Format: int32
sequence_number (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
typestringRequired within parentType of the picklist value (used or unused).
Known values: unused, used

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