searchRecords-Methode – Vergleich
Zweck
Die Werte basierend auf vordefinierten Spalten durchsuchen.
Anfrage-URL
Version 1.0:
https://crm.zoho.com/crm/private/xml/Leads/searchRecords?authtoken=AuthToken&scope=crmapi&criteria=(((Last Name:Steve)AND(Company:Zillum))OR(Lead Status:Contacted))
Version 2.0:
URL: https://www.zohoapis.com/crm/v2/Leads/search?criteria=((Last_Name:starts_with:G) and (Email:equals:deborah@healthnet.com))
Methode: GET
Header: Authorization=Zoho-oauthtoken {oauth_token}
Anfrageparameter
Version 1.0 | Version 2.0 |
---|---|
authtoken=**** | Authorization=Zoho-oauthtoken ***** - als Header. |
scope=crmapi | K. A. |
selectColumns==Leads(First Name,Last Name,Email,Company,Campaign Source) | fields=First_Name,Last_Name,Email,Company First_Name,Last_Name,Email,Company are field API names |
fromIndex=1&toIndex=20 | page=1&per_page=20 |
criteria=(((Last Name:Steve)AND(Company:Zillum))OR(Lead Status:Contacted)) | criteria=(((Last_Name:equals:Steve) and (Company:equals:Zillum)) or (Lead_Status:equals:Contacted)) |
newFormat | K. A. |
lastModifiedTime | If-Modified-Since header |
Beispiel für API-Anfrage:
Anfrage in Version 1.0 | Anfrage in Version 2.0 |
---|---|
https://crm.zoho.com/crm/private/xml/Leads/ getSearchRecordsByPDC?authtoken=***** &searchColumn=email&searchValue=email@zoho.com | URL - https://crm.zoho.com/crm/v2/Leads/search?criteria=(Email:equals:email@zoho.com) |
Hinweis:
Die Antworten sind ähnlich wie die API-Antworten für getRecords.