Delete Records

You can delete a record in an extension or vertical solution using the zoho.crm.invokeConnector() deluge task.

Syntax

<Response> = zoho.crm.invokeConnector("crm.delete", <Module & ID values map>);

where,
<Response> is the task response returned as a Map.
<Module & ID values map> is the map variable to hold the module name and record id values. module name is the API name of the module from which the record needs to be deleted. For example, Price_Books is the API Name of Price Books module. Use the Refer Fields in the Deluge Script Editor to learn these names. record id is the ID of the record to be deleted.

Example

deleteRecordMap = map();
deleteRecordMap.put("module", "Leads");
deleteRecordMap.put("id","3388926000000286025");
deleteResp = zoho.crm.invokeConnector("crm.delete", deleteRecordMap);
info deleteResp;

Response Format

Mentioned below is the response generated for the above code.

{"status_code":200,"response":"{\"data\":[{\"code\":\"SUCCESS\",\"details\":{\"id\":\"3388926000000286025\"},\"message\":\"record deleted\",\"status\":\"success\"}]}"}

 Related Links

https://www.zoho.com/crm/help/api/v2/#delete-specify-records