Hi ,
I am setting up whenever PO is deleted, then trigger the below workflow.
But it doesn't work.
Could you please have a look at my rules?
stock_record_list = zoho.crm.getRelatedRecords("Stock_Record","Purchase_Orders",POID);
//alist = List();
for each stock_record in stock_record_list
{
record_id = stock_record.get("id");
amap = Map();
amap.put("Stock_Status","Released");
//amap.put("id",record_id);
//alist.add(amap);
zoho.crm.updateRecord("Stock_Product_Record",record_id,amap,{"trigger":{"workflow"}});
}
//zoho.crm.bulkUpdate("Stock_Product_Record",alist);