Zoho Project Task Field

Zoho Project Task Field

I'm trying to obtain a list of all Tasks that have been completed today within a certain project.

I'm first using the getProjectDetails method to return the details of a specific project named "Ganar LLC".
Then I use the following getRecords method to return the tasks from that project.
All works well. Then I attempt to retrieve the completed time from each task by using the following for each/get method:


  1. projectData = zoho.projects.getProjectDetails("mazumaprojects","active");
  2. //info projectData;
  3. for each  rec in projectData
  4. {
  5. rec1 = rec.toMap();
  6. if(rec1.get("name") = "Ganar LLC")
  7. {
  8. projectID = rec1.get("id");
  9. info projectID;
  10. }
  11. }

  12. response = zoho.projects.getRecords("mazumaprojects",projectID,"tasks");
  13. mappedTasks = response.toMap();
  14. info mappedTasks;

  15. for each rec in mappedTasks
  16. {
  17. info rec.get("completed_time");
  18. }

However, the result is an error saying:
Failed to execute function
  • 'TEXT' can not be cast to '[BIGINT]' for the function 'get' Line Number:21
Can you please help me know how to retrieve and evaluate specific fields of a task? I suspect the "get()" method may not work here?