Delete Record

Delete Records

Table of Contentsup

You can delete a record in Zoho CRM using the invokeConnector() Deluge task.


<m> = { "module" : "<module name>", "id" : <record id>};
<CRM Response> = zoho.crm.invokeConnector("crm.delete", m);

<CRM Response> is the map variable returned by CRM as response.
<module name> is the API name of the CRM module from which the record will be deleted. E.g. Price_Books is the API Name of Price Books module. The API name can be viewed in the Refer Fields of the Deluge Script Editor. Move your mouse pointer to the center-right edge of the Deluge Script Editor to view the Refer Fields.
<record id> is the ID of the CRM record to be deleted.
<m> is the map variable that holds the key,value pairs. The map key is the label name as specified in the CRM module and the map value is the field value as submitted in the ZC form. For example, "Mailing Street" : (input.account).get("Billing Street") . Here, "Mailing Street" is the label name of the crm module and (input.account).get("Billing Street") refers to the value specified in the Mailing Street field in the account module map.


deleteRecordMap = { "module" : "Leads", "id" : "1298737000000098017" };
deleteResp = zoho.crm.invokeConnector("crm.delete", deleteRecordMap);
info deleteResp;

Mentioned below is the response generated for the above code:


 Related Links 

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: