record_name = cm_returns.get("record_name");cf_dealer = cm_returns.get("cf_dealer");cf_item = cm_returns.get("cf_item");cf_item_2 = cm_returns.get("cf_item_2");cf_issue = cm_returns.get("cf_issue");cf_replaced = cm_returns.get("cf_replaced");sendmail[from :zoho.adminuseridto :"<email>"subject :"RA Item Received"message :"The items for <b>" + record_name + "</b> have been received. <p><b>Details:</b></p><p><b>Dealer:</b> " + cf_dealer + "<br><b>Items: </b>" + cf_item + " " + cf_item_2 + "<br><b>Description:</b> " + cf_issue + "<br><b>Replaced already?</b> " + cf_replaced]resultMap = Map();resultMap.put("code",0);// 0 - Success ; Other than 0 will consider as failurereturn resultMap;
The items for RA-002 have been received.Details:
Dealer: 2841805000000274258
Items: 2841805000000145619
Description: Warranty replacement, SO-01391
Replaced already? Yes