vehicleId = vehicle.get("Vehicles.ID"); vehicleRecord = zoho.crm.getRecordById("Vehicles",vehicleId.toLong()); vehicleName = vehicleRecord.get("Name"); crmResp = zoho.crm.searchRecords("Vehicles","(Name:equals:" + vehicleName + ")",1,10); //info crmResp ; responseXML = ""; rowVal = 0; if(crmResp.size() > 1) { responseXML = responseXML + "<record>"; for each vehicle in crmResp { data = vehicle.get("Vehicle_Contact_1"); contactId = data.get("id"); contactRecord = zoho.crm.getRecordById("Contacts",contactId); contactPhone = contactRecord.get("Phone"); contactName = contactRecord.get("Last_Name"); responseXML = responseXML + "<row cnt='" + rowVal + "'><FL val='Customer Name'>" + contactName + "</FL><FL val='Customer Phone'>" + contactPhone + "</FL></row>"; rowVal = rowVal + 1; } responseXML = responseXML + "</record>"; } else { responseXML = responseXML + "<error>=><message>No other customer has a vehicle with the same model.</message></error>"; } return responseXML; |
Property | Upgrade Type | Modify Access |
Related List Name | Upgradable | Developer Only |
Module | Non-Upgradable | Non-Editable |
Function Code | Upgradable | Developer Only |
Connected App
| Upgradable | Developer Only |
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.