Hi,
I am trying to create a function in ZC to update the respective Zoho CRM contact Record.But I am getting error and I can't figure out where is the problem in my code
- void CRM.CRM_Sync(ContactForm rcd)
- {
-
- for each rec in rcd sort by Added_Time desc range from 1 to 20
- {
-
- srt = rec.Zoho_CRM_Contact_Name_ID.toString();
- com = TV_Station[ID ==rec.crm_TV_Station ].Add_TVStation_Name.toString();
- dat = TV_Station[ID == rec.crm_TV_Station];
- net = Network[ID == dat.Add_primaryChannel].Network_Name.toString();
- mrk = Market[ID == dat.Add_Market].Market_Name.toString();
- grp = Broadcast_Management[ID == dat.Add_BM1].BM.toString();
- stype = Station_Type[ID == dat.Add_ST1].ST_Name.toString();
- hh = Market[ID == dat.Add_Market].Households_2008_2012.toLong();
-
-
-
- resp = zoho.crm.updateRecord("Contacts", srt, { "Company" : com, ".1 Channel" : net, "Market" : mrk, "Broadcast Management" : grp,"Mailing Street" : rec.crm_Mailing_Street, "Mailing City" : rec.contacts_City, "Mailing State" : rec.contacts_US_State, "Mailing Zip" : rec.contact_ZipCode, "Media Type" : stype, "Households" : hh });
-
- }
-
- }
Screenshot :
Can anyone please help me
Arfater