Commit 0a6e8e16 authored by Sandeep's avatar Sandeep
Browse files

other code added

parent c61fb1be
Showing with 31 additions and 0 deletions
+31 -0
lead_data = zoho.crm.getRecordById("Leads",lead_id);
// info lead_data;
form_name = lead_data.get("Form_Name");
info form_name;
trust_location = lead_data.get("Trust_Location");
mp = Map();
queryMap1 = Map();
queryMap1.put("select_query","select Call_Speciality,Trust_Location from Form_Name_Mapping where Name = '" + form_name + "' and Trust_Location = '" + trust_location + "'");
response2 = invokeurl
[
url :"https://www.zohoapis.in/crm/v4/coql"
type :POST
parameters:queryMap1.toString()
connection:"zohoconditions"
];
info response2 + "2nd response";
for each rec in response2.get("data")
{
form_call_speciality = rec.get("Call_Speciality");
// info form_call_speciality;
}
mp.put("Call_Speciality",form_call_speciality);
updt = zoho.crm.updateRecord("Leads",lead_id,mp);
info updt;
\ No newline at end of file
## Description
1. In this function we are fetching the form name of the lead then search in the custom module which is named as : Form Name Mapping
2. If we found the record in the Form Name Mapping module then we fetch the trust location and call speciality
3. Then we update the Lead record in lead module's call speciality.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment