getFields

getFields-methode - vergelijking

Doel

Details van velden die beschikbaar zijn in een module ophalen.

Aanvraag-URL

Versie 1.0:

https://crm.zoho.com/crm/private/xml/Leads/getFields?authtoken=AuthToken&scope=crmapi

Versie 2.0:

URL: https://www.zohoapis.com/crm/v2/settings/fields?module={module_api_name}

Methode: GET

Header: Authorization=Zoho-oauthtoken {oauth_token}

Aanvraagparameters

Versie 1.0Versie 2.0
authtoken=****Authorization=Zoho-oauthtoken ***** - als een Header.
scope=crmapin.v.t.
typen.v.t.

Voorbeeldantwoorden:

+
Antwoord in versie 1.0Antwoord in versie 2.0
<?xml version="1.0" encoding="UTF-8" ?>
<Leads>
<section name="Lead Information" dv="Lead Information">
<FL req="false" type="Lookup" isreadonly="false" maxlength="120" label="Lead Owner" dv="Lead Owner" customfield="false"></FL>
..
..
</section>
</Leads>
{
  "fields": [
   {
    "custom_field": false,
    "lookup": {},
    "visible": true,
    "webhook": true,
    "json_type": "jsonobject",
    "crypt": null,
    "field_label": "Lead Owner",
    "length": 120,
    "tooltip": null,
    "view_type": {
     "view": true,
     "edit": true,
     "quick_create": false,
     "create": true,
    },
    "created_source": "default",
    "read_only": false,
    "api_name": "Owner",
    "unique": {},
    "businesscard_supported": true,
    "data_type": "ownerlookup",
    "formula": {},
    "currency": {},
    "id": "1386586000000002589",
    "decimal_place": null,
    "pick_list_values": [],
    "multiselectlookup": {},
    "auto_number": {}
   },
  ...
  ]
 }
 

Let op:

In het antwoord van de v2-API worden de velden van alle lay-outs weergegeven. U moet https://www.zohoapis.com/crm/v2/settings/layouts?module=Leads (GET-API) aanroepen om specifieke lay-outvelden op te halen.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocrm.com