When a record is deleted in one custom module I want to select all related records in another custom module and delete them.
//
//Get all line items for the contract
resp = zoho.crm.searchRecords("custommodule1","(Contract ID|=|" + input.ContractID + ")");
//
//For each line item
for each rec in resp
{
varLineItemID=rec.get("custommodule1_ID");
linemap=map();
linemap.put("authtoken","XXXXXXXXXXXXX");
linemap.put("scope","crmapi");
linemap.put("id",varLineItemID);
//
info test;
}
If anyone can provide any suggestions, alternatives or help it would be much appreciated.
Thanks.