Hello Everyone!
I wanted to share a custom function that we recently implemented to address a specific customer requirement.
The customer needed a way to automatically add a timesheet entry whenever a task is created. We have successfully accomplished this requirement with the help of Custom Functions
Here is the code.
data=map();
data.put("date",creationdate.toString("MM-dd-yyyy"));
data.put("bill_status","Billable");
data.put("hours","01:00");
addtimesheet=invokeurl[
url: "https://projectsapi.zoho.com/restapi/portal/"+portalId+"/projects/"+projectId+"/tasks/"+taskId+"/logs/"
type : post
parameters : data
connection :"zohoprojects"
];
return "success";
Implementing this custom function in Zoho Projects has allowed our customer to automate timelog creation, saving valuable time and effort. It's important to note that this is just one example of how custom functions can be utilised. With a touch of creativity, you can develop custom functions that cater to your project's unique needs.
If you'd like to explore custom functions further, check out the Zoho Projects documentation on how to establish connections and leverage custom functions
Stay tuned for more custom function codes and exciting updates! If you have any questions or want to share your own custom function use cases, feel free to join the discussion.
Writer is a powerful online word processor, designed for collaborative work.