Global Picklist Field Association
Purpose
To retrieve information on the fields, modules, and layouts where a global picklist is associated.
Endpoints
- GET /settings/global_picklists/{global_picklist_id}/actions/associations
Request Details
Request URL
{api-domain}/crm/{version}/settings/global_picklists/{global_picklist_ID}/actions/associations
Header
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Scope
ZohoCRM.settings.global_picklist.READ
(or)
ZohoCRM.settings.global_picklist.ALL
Supported modules
Leads, Contacts, Accounts, Campaigns, Cases, Invoices, Deals, Price Books, Products, Purchase Orders, Quotes, Sales Orders, Solutions, Vendors, Calls, Tasks, Events, Users, DealHistory, QuotedItems, OrderedItems, PurchaseItems, InvoicedItems, Visits, Services, Appointments, and Custom modules.
Parameters
- Pageinteger, optionalTo get the list of records from the respective pages. Default value: 1 
 Possible values: Positive Integer values only.
- per_pageinteger, optionalTo get the list of records available per page. The default and the maximum possible value is 200. 
 Possible values: Positive Integer values only.
- include_inner_detailsstring, optionalSpecify whether additional details, such as layout status and module plural label, should be included in the API response. Possible values are: - layout.statusstring, optionalTo include the status of the layout in which the global picklist is used. 
- module.plural_labelstring, optionalTo include the plural label of the module where the global picklist is used. 
 
Sample Request
Copiedcurl "https://www.zohoapis.com/crm/v8/settings/global_picklists/2423488000000492003/actions/associations"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"Response JSON
- fieldJSON objectIt represents the field details with which the requested global picklist is associated. 
- moduleJSON objectIt represents the details about associated module. 
- layoutsJSON objectIt represents the details of the layouts within which the global picklist is used. 
Possible Errors
- INVALID_DATAHTTP 400Given ID seems to be invalid Resoutions: Specify a valid ID. Use the GET Global Picklist API to retrieve the unique ID of the global picklist. 
- INVALID_REQUEST_METHODHTTP 400The https request method type is not a valid one 
 Resolution: You have specified an invalid HTTP method to access the API URL.
 Specify a valid request method. Refer to the Endpoints section.
- OAUTH_SCOPE_MISMATCHHTTP 401Unauthorized 
 Resolution: The client does not have a valid scope to fetch global picklist field associations. Create a valid token with the required scopes. Refer to the Scope section.
- AUTHENTICATION_FAILUREHTTP 401Authentication failed 
 Resolution: Pass the access token in the request header of the API call.
- INVALID_URL_PATTERNHTTP 404Please check if the URL trying to access is a correct one 
 Resolution: The request URL specified is incorrect. Specify a valid request URL. Refer to the Request URL section.
- INTERNAL_ERRORHTTP 500Internal Server Error 
 Resolution: Unexpected and unhandled exception in the server. Contact support team.
Sample Response
Copied{
    "associations": [
        {
            "field": {
                "api_name": "Pick_List_1",
                "id": "2423488000000680001"
            },
            "module": {
                "plural_label": "Leads",
                "api_name": "Leads",
                "id": "2423488000000000125"
            },
            "layouts": [
                {
                    "name": "Standard",
                    "id": "2423488000000095055",
                    "status": "active"
                }
            ]
        },
        {
            "field": {
                "api_name": "Pick_List_1",
                "id": "2423488000000680069"
            },
            "module": {
                "plural_label": "Contacts",
                "api_name": "Contacts",
                "id": "2423488000000000129"
            },
            "layouts": [
                {
                    "name": "Standard",
                    "id": "2423488000000095059",
                    "status": "active"
                }
            ]
        }
    ],
.
.
.
    "info": {
        "per_page": 200,
        "count": 2,
        "page": 1,
        "more_records": false
    }
}