Related Lists Metadata

Purpose

To get the metadata of the related lists in a particular module.

Request Details

Request URL

{api-domain}/crm/{version}/settings/related_lists?module={module_api_name}

Supported modules

Leads, Accounts, Contacts, Deals, Campaigns, Tasks, Cases, Events, Calls, Solutions, Products, Vendors, Price Books, Quotes, Sales Orders, Purchase Orders, Invoices, Appointments, Services and Custom

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Scope

scope=ZohoCRM.settings.related_lists.READ
(or)
scope=ZohoCRM.settings.related_lists.ALL
(or)
scope=ZohoCRM.settings.ALL

Parameters

  • modulestring, mandatory

    Specify the API name of the required module. For example, Leads, Contacts, Accounts, Deals, and so on.

  • layout_idstring, optional

    Specify the unique ID of the layout to fetch the metadata of the related lists specific to that layout. If you do not include this parameter, the metadata of the related lists is fetched from the Standard layout.

Note
  • The "href" attribute in the response must be used in the URL to call the related list API. For example, the URL for calling the related list API must be: https://www.zohoapis.com/crm/v4/Leads/{ENTITYID}/Entity_Scores__s.

Sample Request

Copiedcurl "https://www.zohoapis.com/crm/v4/settings/related_lists?module=Leads"
-X GET
-H "Authorization: Zoho-oauthtoken 1000.8cb99dxxxxxxxxxxxxx9be93.9b8xxxxxxxxxxxxxxxf"
Copiedresponse = invokeurl
[
	url: "https://www.zohoapis.com/crm/v4/settings/related_lists?module=Leads"
	type: GET
	connection:"crm_oauth_connection"
];
info response;

Response JSON Keys

  • sequence_numberinteger

    Represents the position of the related list in the module, in CRM.

  • display_labelstring

    Represents the display name of the related list.

  • customize_sortboolean

    Represents if the records in the related list can be sorted.

  • customize_fieldsboolean

    Represents if the fields of the related list can be customized.

  • customize_display_labelboolean

    Represents if the display label of the related list can be customized.

  • api_namestring

    Represents the API name of the related list.

  • moduleJSON object

    Represents the API name and ID of the module which the related list belongs to.

  • namestring

    Represents the display name of the module to which the related list belongs to.

  • idstring

    Represents the unique ID of the related list.

  • hrefstring

    Represents the URL reference to access the current related list.

  • typestring

    Represents the type of the current related list. The value can be either default or multiselectlookup.

  • connectedmodulestring

    If the related list is a multi-select lookup, the key represents the API name of the related module.

  • linkingmodulestring

    Represents the API name of the linking module.

Sample Response

Copied{
    "related_lists": [
        {
            "sequence_number": "0",
            "display_label": "Scoring Rules",
            "customize_sort": false,
            "customize_fields": false,
            "api_name": "Entity_Scores__s",
            "module": {
                "api_name": "Entity_Scores__s",
                "id": "3652397000005659021"
            },
            "customize_display_label": false,
            "name": "Scoring Rules",
            "action": null,
            "id": "3652397000005659051",
            "href": "Leads/{ENTITYID}/Entity_Scores__s",
            "type": "default"
        },
        {
            "sequence_number": "1",
            "display_label": "Notes",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Notes",
            "module": {
                "api_name": "Notes",
                "id": "3652397000000002197"
            },
            "customize_display_label": false,
            "name": "Notes",
            "action": null,
            "id": "3652397000000015122",
            "href": "Leads/{ENTITYID}/Notes",
            "type": "default"
        },
        {
            "sequence_number": "1",
            "display_label": "Lead Status History",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Lead_Status_History",
            "module": {
                "api_name": "Lead_Status_History",
                "id": "3652397000002906002"
            },
            "customize_display_label": false,
            "name": "Lead Status History",
            "action": "picklist_tracker",
            "id": "3652397000002906282",
            "href": "Leads/{ENTITYID}/Lead_Status_History",
            "type": "default"
        },
        {
            "sequence_number": "2",
            "display_label": "Attachments",
            "customize_sort": true,
            "customize_fields": false,
            "api_name": "Attachments",
            "module": {
                "api_name": "Attachments",
                "id": "3652397000000002227"
            },
            "customize_display_label": false,
            "name": "Attachments",
            "action": null,
            "id": "3652397000000003771",
            "href": "Leads/{ENTITYID}/Attachments",
            "type": "default"
        },
        {
            "sequence_number": "3",
            "display_label": "Products",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Products",
            "module": {
                "api_name": "Products",
                "id": "3652397000000002213"
            },
            "customize_display_label": false,
            "name": "Products",
            "action": null,
            "id": "3652397000000003773",
            "href": "Leads/{ENTITYID}/Products",
            "type": "default"
        },
        {
            "sequence_number": "4",
            "display_label": "Open Tasks",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Tasks",
            "module": {
                "api_name": "Tasks",
                "id": "3652397000000002193"
            },
            "customize_display_label": false,
            "name": "Tasks",
            "action": null,
            "id": "3652397000007367003",
            "href": "Leads/{ENTITYID}/Tasks",
            "type": "default"
        },
        {
            "sequence_number": "4",
            "display_label": "Open Meetings",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Events",
            "module": {
                "api_name": "Events",
                "id": "3652397000000002195"
            },
            "customize_display_label": false,
            "name": "Events",
            "action": null,
            "id": "3652397000007367005",
            "href": "Leads/{ENTITYID}/Events",
            "type": "default"
        },
        {
            "sequence_number": "4",
            "display_label": "Open Calls",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Calls",
            "module": {
                "api_name": "Calls",
                "id": "3652397000000033015"
            },
            "customize_display_label": false,
            "name": "Calls",
            "action": null,
            "id": "3652397000007367007",
            "href": "Leads/{ENTITYID}/Calls",
            "type": "default"
        },
        {
            "sequence_number": "5",
            "display_label": "Closed Tasks",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Tasks_History",
            "module": {
                "api_name": "Tasks",
                "id": "3652397000000002193"
            },
            "customize_display_label": false,
            "name": "Tasks History",
            "action": null,
            "id": "3652397000007367009",
            "href": "Leads/{ENTITYID}/Tasks_History",
            "type": "default"
        },
        {
            "sequence_number": "5",
            "display_label": "Closed Meetings",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Events_History",
            "module": {
                "api_name": "Events",
                "id": "3652397000000002195"
            },
            "customize_display_label": false,
            "name": "Events History",
            "action": null,
            "id": "3652397000007367011",
            "href": "Leads/{ENTITYID}/Events_History",
            "type": "default"
        },
        {
            "sequence_number": "5",
            "display_label": "Closed Calls",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Calls_History",
            "module": {
                "api_name": "Calls",
                "id": "3652397000000033015"
            },
            "customize_display_label": false,
            "name": "Calls History",
            "action": null,
            "id": "3652397000007367013",
            "href": "Leads/{ENTITYID}/Calls_History",
            "type": "default"
        },
        {
            "sequence_number": "6",
            "display_label": "Emails",
            "customize_sort": true,
            "customize_fields": false,
            "api_name": "Emails",
            "module": {
                "api_name": "Emails",
                "id": "3652397000000014163"
            },
            "customize_display_label": false,
            "name": "Emails",
            "action": null,
            "id": "3652397000000014410",
            "href": null,
            "type": "default"
        },
        {
            "sequence_number": "7",
            "display_label": "Invited Meetings",
            "customize_sort": true,
            "customize_fields": false,
            "api_name": "Invited_Events",
            "module": {
                "api_name": "Events",
                "id": "3652397000000002195"
            },
            "customize_display_label": false,
            "name": "Invited Events",
            "action": null,
            "id": "3652397000000062001",
            "href": "Leads/{ENTITYID}/Invited_Events",
            "type": "default"
        },
        {
            "sequence_number": "8",
            "display_label": "Zoho Desk",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Zoho_Support",
            "module": null,
            "customize_display_label": false,
            "name": "Zoho Support",
            "action": null,
            "id": "3652397000000209001",
            "href": null,
            "type": "default"
        },
        {
            "sequence_number": "9",
            "display_label": "Campaigns",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Campaigns",
            "module": {
                "api_name": "Campaigns",
                "id": "3652397000000002183"
            },
            "customize_display_label": false,
            "name": "Campaigns",
            "action": null,
            "id": "3652397000000040017",
            "href": "Leads/{ENTITYID}/Campaigns",
            "type": "default"
        },
        {
            "sequence_number": "10",
            "display_label": "Social",
            "customize_sort": true,
            "customize_fields": false,
            "api_name": "Social",
            "module": {
                "api_name": "Social",
                "id": "3652397000000065001"
            },
            "customize_display_label": false,
            "name": "Social",
            "action": null,
            "id": "3652397000000065003",
            "href": null,
            "type": "default"
        },
        {
            "sequence_number": "11",
            "display_label": "Checklists",
            "customize_sort": true,
            "customize_fields": false,
            "api_name": "CheckLists",
            "module": {
                "api_name": "CheckLists",
                "id": "3652397000000141001"
            },
            "customize_display_label": false,
            "name": "CheckLists",
            "action": null,
            "id": "3652397000000141005",
            "href": "Leads/{ENTITYID}/CheckLists",
            "type": "default"
        },
        {
            "sequence_number": "12",
            "display_label": "Zoho Survey",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Zoho_Survey",
            "module": null,
            "customize_display_label": false,
            "name": "Zoho Survey",
            "action": null,
            "id": "3652397000000209037",
            "href": null,
            "type": "default"
        },
        {
            "sequence_number": "13",
            "display_label": "Visits - Zoho",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Visits_Zoho_Livedesk",
            "module": {
                "api_name": "Visits",
                "id": "3652397000000077007"
            },
            "customize_display_label": false,
            "name": "Visits - Zoho Livedesk",
            "action": null,
            "id": "3652397000000213048",
            "href": "Leads/{ENTITYID}/Visits_Zoho_Livedesk",
            "type": "default"
        },
        {
            "sequence_number": "14",
            "display_label": "Related List Name 1",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Related_List_Name_1",
            "module": {
                "api_name": "Accounts",
                "id": "3652397000000002177"
            },
            "customize_display_label": true,
            "name": "Related List Name 1",
            "action": null,
            "id": "3652397000000381023",
            "href": "Leads/{ENTITYID}/Related_List_Name_1",
            "type": "custom_lookup"
        },
        {
            "sequence_number": "15",
            "display_label": "Campaigns_Lookup",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Campaigns_Lookup1",
            "module": {
                "api_name": "custom1",
                "id": "3652397000000970126"
            },
            "customize_display_label": true,
            "name": "Campaigns_Lookup",
            "action": null,
            "id": "3652397000000971006",
            "href": "Leads/{ENTITYID}/Campaigns_Lookup1",
            "type": "custom_lookup"
        },
        {
            "module": {
                "api_name": "Leads_vs_Listings",
                "id": "3652397000001978044"
            },
            "type": "multiselectlookup",
            "connectedmodule": "CustomModule5",
            "linkingmodule": "LinkingModule3",
            "sequence_number": "17",
            "display_label": "Listings",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Listings3",
            "customize_display_label": true,
            "name": "Listings",
            "action": null,
            "id": "3652397000001978135",
            "href": "Leads/{ENTITYID}/Listings3"
        },
        {
            "sequence_number": "51",
            "display_label": "Custom test",
            "customize_sort": true,
            "customize_fields": true,
            "api_name": "Custom_test",
            "module": {
                "api_name": "Custom_Test",
                "id": "3652397000009178002"
            },
            "customize_display_label": true,
            "name": "Custom test",
            "action": null,
            "id": "3652397000009179042",
            "href": "Leads/{ENTITYID}/Custom_test",
            "type": "custom_lookup"
        }
    ]
}