Hi All!
I'm starting with Zoho creator and handling an strange error here.... Can anyone tell me what i'm doing wrong? >.<
Function Parameters : accountId, accountType
- PORTAL_NAME = "xxxx";
- AUTHTOKEN = "xxxxxx";
- DEPARTMENT = "xxxxx";
- SLA_MAP = Map:String();
- SLA_MAP.put("CLIENTE","88184000000020031");
- SLA_MAP.put("IMPORTANTE","88184000000020029");
- SLA_MAP.put("CLAVE","88184000234882025");
- SLA_ID = SLA_MAP.get(accountType);
- if(!SLA_ID == null) {
- REQUEST_MAP = Map:String();
- REQUEST_MAP.put("associatedSLAIds": SLA_ID);
- update_response = zoho.support.updateRecord("Accounts", PORTAL_NAME, DEPARTMENT, accountId.toString(), REQUEST_MAP); // or {"associatedSLAIds" : SLA_ID});
- }
I'm getting the error:
Error at line number:
15
Incompatible types for put function at argument index 1 <br/> Required : KEY-VALUE <br/>Found : TRUE/FALSE
Thanks in advance.