getFields

getFields-Methode – Vergleich

Zweck

Informationen aus in einem Modul verfügbaren Feldern abrufen.

Anfrage-URL

Version 1.0:

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

Version 2.0:

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

Methode: GET

Header: Authorization=Zoho-oauthtoken {oauth_token}

Anfrageparameter

Version 1.0Version 2.0
authtoken=****Authorization=Zoho-oauthtoken ***** - als Header.
scope=crmapiK. A.
TypK. A.

Beispielantworten:

+
Antwort in Version 1.0Antwort in Version 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": {}
   },
  ...
  ]
 }
 

Hinweis:

In API Version 2.0 werden in der Antwort Felder aus allen Layouts aufgeführt. Wenn Sie Felder aus bestimmten Layouts abrufen möchten, müssen Sie https://www.zohoapis.com/crm/v2/settings/layouts?module=Leads,GET API

aufrufen.

Share this post : FacebookTwitter

Finden Sie immer noch nicht, wonach Sie suchen?

Schreib uns: support@zohocrm.com