void CRM.Employee_insert_in_CRM(int empid) { books_access = thisapp.Books.Get_Books_Access(); conn_tok = books_access.get("connection"); org_id = books_access.get("organisation_id"); fetch_emp_id = Employee_Details[ID == input.empid]; mymap = Map(); mymap.put("Name",fetch_emp_id.Employee_Name); mymap.put("Employee_code",fetch_emp_id.Employee_ID); mymap.put("Email",fetch_emp_id.Employee_Email); mymap.put("Phone",fetch_emp_id.Mobile_Number); mymap.put("Designation",fetch_emp_id.Designation); mymap.put("Status",fetch_emp_id.Status); // info mymap; dummymap = Map(); // info fetch_emp_id.Zoho_CRM_ID; if(fetch_emp_id.Zoho_CRM_ID == null || fetch_emp_id.Zoho_CRM_ID == "") { createincrm = zoho.crm.createRecord("CWPL_Emp",mymap,dummymap,"crm_connection"); emp_id = createincrm.get("id"); //info createincrm; } else { updatrecincrm = zoho.crm.updateRecord("CWPL_Emp",fetch_emp_id.Zoho_CRM_ID.toLong(),mymap); emp_id = updatrecincrm.get("id"); //info updatrecincrm; } // info createincrm; info emp_id; //Error in log file--Mismatch of data type expression. Expected BIGINT but found STRING Line:(26) if(fetch_emp_id.Zoho_CRM_ID == null || fetch_emp_id.Zoho_CRM_ID == "") { fetch_emp_id.Zoho_CRM_ID=emp_id; } }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter