Sandbox vs Production Deluge Code Error
Hi, I have bene using this block of code and working on it to get ZOHO to do something for me, all of yesterday it worked fine. Then this morning out of the blue , I start getting this error:
Failed to execute function
- Argument type mismatch - Found 'TEXT' but Expected '[BIGINT]' for the function 'get' Line Number:16
Now, when i cut and paste that exact same code into production, it works perfectly.
Please advise?
Code is below:
- loop = {1,2,3,4,5.6,7,8,9,10};
- Contactswithoutcall = List();
- for each ele in loop
- {
- MyContacts = zoho.crm.searchRecords("Contacts","(Owner:equals:4775614000000386180)",6,200);
- if(MyContacts.size() == 0)
- {
- break;
- }
- // Get contacts that dont have a scheduled call
- for each rec in MyContacts
- {
- val = "";
- relcalls = zoho.crm.getRelatedRecords("Calls","Contacts",rec.get("id"));
- if(relcalls.size() > 0)
- {
- for each call in relcalls
- {
- ctime = call.get("Call_Start_Time").toTime("yyyy-MM-dd'T'HH:mm:ss");
- if(ctime > now)
- {
- val = "Yes";
- }
- }
- }
- if(val == "")
- {
- Contactswithoutcall.add(rec.get("id"));
- }
- }
- }
- // info " Contact List;" + Contactswithcall;
- info "Account Count : " + Contactswithoutcall.size();