getFields 方法 - 对比
用途
检索模块中可用字段的详细信息。
请求URL
版本 1.0:
https://crm.zoho.com.cn/crm/private/xml/Leads/getFields?authtoken=AuthToken&scope=crmapi
版本 2.0:
URL: https://www.zohoapis.com.cn/crm/v2/settings/fields?module={module_api_name}
Method: GET
Header: Authorization=Zoho-oauthtoken {oauth_token}
请求参数
版本 1.0 | 版本 2.0 |
---|---|
authtoken=**** | Authorization=Zoho-oauthtoken ***** - 作为一个 Header。 |
scope=crmapi | N/A |
type | N/A |
样本响应:
版本 1.0 响应 | 版本 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": "JSON 对象", "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": {} }, ... ] } |
备注:
在v2 API响应中,来自所有布局的字段将被列出。要获得特定的布局字段,您需要调用 https://www.zohoapis.com.cn/crm/v2/settings/layouts?module=Leads, GET API。