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?

    • Sticky Posts

    • Function #41: Sync Associated Subforms!

      Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",

      Zoho SalesIQ Resources

            Zoho TeamInbox Resources

              Zoho DataPrep Resources

                  Zoho CRM Plus Resources

                    Zoho Books Resources

                      Zoho Subscriptions Resources

                        Zoho Desk Resources

                          Zoho Projects Resources

                            Zoho Sprints Resources

                              Qntrl Resources

                                Zoho Creator Resources

                                  Zoho WorkDrive Resources

                                      Zoho Campaigns Resources

                                        Zoho CRM Resources

                                                    Design. Discuss. Deliver.

                                                    Create visually engaging stories with Zoho Show.

                                                    Get Started Now

                                                      Zoho Show Resources

                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.