Hi,
when i am trying the update the field , then i am getting this error as attached .. may be the data type boolean as expected not getting .. i tried with 'True', 'true' but still i am getting error .. screenshot ...
here is the code i tried,
contactRecords = zoho.crm.getRecordById("Contacts",contactID);
job_role = contactRecords.get("Job_Role"); info job_role;
Email_Opt_Out = contactRecords.get("Email_Opt_Out"); info Email_Opt_Out;
if ( job_role == "No Longer an employee" )
{
//info "True" ;
mp = Map();
mp.put("Email_Opt_Out","true"); info mp;
updateRecord = zoho.crm.updateRecord("Contacts",contactID,mp);
info updateRecord;
}