Hello Zoho Members and Programmers
I am created an application which puch data in Zoho CRM Contact module, everything is fine data is successfully stored at both locations Zoho CRM and Zoho Creator.
Now i want that when i am edited any data row in Creator then corresponding Zoho CRM contact module row is also updated. So for this i am follow following post:
and use following Coding at Form >> Edit >> Success
- // First i search the records according to Form Input.
- contact_search = zoho.crm.searchrecords("Contacts","(Last Name|==|input.Last_Name)");
- current_id= contact_search .get("Contact Id"); // i get error in this line.
- Contact_edit_res = zoho.crm.updaterecord("Contacts",current_id,{ "Email" : input.Email, "First Name" : input.First_Name, "Email" : input.Email, });
the error comes:
Error at line:3
The argument for the operation :'get' should be of type long/int. But an expression of type :'STRING' was found
I am also replace the code with doing following update:
- // First i search the records according to Form Input.
- contact_search = zoho.crm.searchrecords("Contacts","(Last Name|==|input.Last_Name)");
- current_id=(contact_search.get("Contact Id")).toLong(); // i am update this line with long value returning.
- Contact_edit_res = zoho.crm.updaterecord("Contacts",current_id,{ "Email" : input.Email, "First Name" : input.First_Name, "Email" : input.Email, });
but i am get the same error:
Error at line:3
The argument for the operation :'get' should be of type long/int. But an expression of type :'STRING' was found
I am stuck in this problem please provide me solution. Also check my update call function for CRM, is it can be work for me in which manner i am used it here.
Thanks in Advance
With Regards
Elias Rollen