开发者 API 帮助

getSearchRecordsByPDC 方法

目的

您可以使用这种方法根据预定义的列搜索值。

请求URL

XML 格式:
https://crm.zoho.com/crm/private/xml/Leads/getSearchRecordsByPDC?newFormat=1&authtoken=Auth Token&scope=crmapi

JSON 格式:
https://crm.zoho.com/crm/private/json/Leads/getSearchRecordsByPDC?newFormat=1&authtoken=Auth Token&scope=crmapi

请求参数

参数 数据类型 描述
authotoken* 字符串 加密的字母数字字符串,以对您的Zoho用户名密码进行身份验证。
scope* 字符串 指定 crmapi 为范围
selectColumns* 字符串 All 或 模块(字段1,字段2,字段3,字段 n...)
示例: leads(Last Name,Website,Email)
searchColumn* 字符串 指定预定搜索列
searchValue* 字符串 指定要搜索的值
newFormat 整数 newFormat=1: 从您的CRM帐号插入数据时,排除含“空”值的字段。
newFormat=2: 从您的CRM帐号插入数据时,包括含“空”值的字段。
version 整数 version = 1:(默认值) 这将根据较早的API执行,即作出改进之前的获取响应。
version = 2: 这将根据最近的API执行获取响应。

* - 必填参数

备注:

  • 请参见发布说明页,以了解更多关于在API实施中所做的改进。

默认预设列

模块 字段
leads
  • email
  • campaignid
Accounts
  • accountid
  • accountname
contacts
  • contactid
  • accountid
  • vendorid
  • campaignid
  • email
Potentials
  • potentialid
  • accountid
  • campaignid
  • contactid
  • potentialname
Campaigns
  • campaignid
  • campaignname
Cases
  • caseid
  • productid
  • accountid
  • potentialid
Solutions
  • solutionid
  • productid
Products
  • productid
  • vendorid
  • productname
Purchase Order
  • purchaseorderid
  • contactid
  • vendorid
Quotes
  • quoteid
  • potentialid
  • accountid
  • contactid
Sales Orders
  • salesorderid
  • potentialid
  • accountid
  • contactid
  • quoteid
Invoices
  • invoiceid
  • accountid
  • salesorderid
  • contactid
Vendors
  • vendorid
  • vendorname
Tasks
  • taskid
Events
  • eventid
Notes
  • notesid

示例

https://crm.zoho.com/crm/private/xml/Leads/getSearchRecordsByPDC?newFormat=1&authtoken=Auth Token&scope=crmapi &selectColumns=leads(Last Name,Website,Email)&searchColumn=email &searchValue=abc@testingdomain.com

线索含email列

https://crm.zoho.com/crm/private/xml/Leads/getSearchRecordsByPDC?authtoken=Auth Token&scope=crmapi
&selectColumns=Leads(Last Name,Website,Email)
&searchColumn=email
&searchValue=test@test.com

线索含campaignid列

https://crm.zoho.com/crm/private/xml/Leads/getSearchRecordsByPDC?authtoken=Auth Token&scope=crmapi
&selectColumns=Leads(Last Name,Website,Email)
&searchColumn=campaignid
&searchValue=2000000017011

联系人含vendorid列

https://crm.zoho.com/crm/private/xml/Contacts/getSearchRecordsByPDC?authtoken=Auth Token&scope=crmapi
&selectColumns=Contacts(Contact Owner,Lead Source,First Name,Last Name,Account Name)
&searchColumn=vendorid
&searchValue=2000000017022

产品含vendorid列

https://crm.zoho.com/crm/private/xml/Products/getSearchRecordsByPDC?authtoken=Auth Token&scope=crmapi
&selectColumns=Products(Product Owner,Product Name,Product Code,Manufacturer,Product Category,Unit Price)
&searchColumn=vendorid
&searchValue=2000000017022

销售订单含accountid列

https://crm.zoho.com/crm/private/xml/SalesOrders/getSearchRecordsByPDC?authtoken=Auth Token&scope=crmapi
&selectColumns=SalesOrders(SO Number,Subject,Due Date,Carrier,Status)
&searchColumn=accountid
&searchValue=2000000017003

测试程序

您可以使用附件中的 程序在您的Java环境中运行和测试 getSearchRecordsByPDC方法。
Java程序包含以下内容:

  • the auth令牌生成格式
  • 参数和它们的值
  • 方法的实际使用

点击这里 下载程序

返回顶部