getDeletedRecordIds Method - Comparison

getDeletedRecordIds Method - Comparison

Purpose

To delete a specific or multiple records.

Request URL

Version 1.0:

https://crm.zoho.com/crm/private/xml/<Module>/getDeletedRecordIds?authtoken=AuthToken&scope=crmapi

Version 2.0:

URL: https://www.zohoapis.com/crm/v2/{module_api_name}/deleted

Method: DELETE

Header: Authorization=Zoho-oauthtoken {oauth_token}

Request Parameters

Version 1.0 Version 2.0
authtoken=**** Authorization=Zoho-oauthtoken ***** - as a Header.
scope=crmapi N/A
fromIndex=1&toIndex=20 page=1&per_page=20
lastModifiedTime=2010-04-21 11:09:23 If-Modified-Since=2010-04-21T11:09:23+05:30 (ISO 8601 Date time format) - as a Header.
 
+
Response in Version 1.0 Response in Version 2.0
<?xml version="1.0" encoding="UTF-8" ?>
<response uri="/crm/private/xml/Leads/getDeletedRecordIds">
<result>
<DeletedIDs>1386586000001988002,1386586000002025064,1386586000002025059</DeletedIDs>
</result>
</response>
{
  "data": [
   {
    "deleted_by": {
     "name": "Bruce Wills",
     "id": "1386586000000078001"
    },
    "id": "1386586000002572002",
    "display_name": "Deb",
    "type": "recycle",
    "Created_By": {
     "name": "Bruce Wills",
     "id": "1386586000000078001"
    },
    "deleted_time": "2018-02-13T15:48:13+05:30",
    },
    {
    "deleted_by": {
     "name": "Bruce Wills",
     "id": "1386586000000078001"
    },
    "id": "1386586000002025064",
    "display_name": "Cold2",
    "type": "recycle",
    "Created_By": {
     "name": "Bruce Wills",
     "id": "1386586000000078001"
    },
    "deleted_time": "2018-02-13T15:48:13+05:30",
    },
    ...
  ],   "info": {    "per_page": 200,    "count": 3,    "page": 1,    "more_records": false   }  }
 

Note:

The field, "DeletedIDs" in v1.0 APIs is equivalent to "id" in each JSON object.

    • Related Articles

    • getDeletedRecordIds Method

      Table of Contents Purpose Request URL Request Parameters Sample Response Purpose You can use the getDeletedRecordIdsmethod to retrieve the list of IDs of deleted records from recylce bin. Request URL XML Format: ...
    • downloadPhoto Method - Comparison

      Purpose To download the photo of a lead or a contact. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/(Leads or Contacts)/downloadPhoto?authtoken=AuthToken&scope=crmapi&id=RecordID Version 2.0: URL: ...
    • downloadFile Method - Comparison

      Purpose To download a file attached to a record. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/Leads/downloadFile?authtoken=AuthToken&scope=crmapi&id=Attachment Id Version 2.0: URL: ...
    • deletePhoto Method - Comparison

      Purpose To delete a photo of a contact or lead. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/(Leads or Contacts)/deletePhoto?authtoken=AuthToken&scope=crmapi&id=RecordID Version 2.0: URL: https://www.zohoapis.com/crm/v2/{Leads or ...
    • deleteRecords Method - Comparison

      Purpose To delete the selected records. Request URL Version 1.0: https://crm.zoho.com/crm/private/xml/Leads/deleteRecords?authtoken=AuthToken&scope=crmapi&id=Record ID Version 2.0: URL: https://www.zohoapis.com/crm/v2/Leads/{record_id} Method: DELETE ...