Power of Automation :: Quick way to associate your Projects with Zoho CRM

Power of Automation :: Quick way to associate your Projects with Zoho CRM

A custom function is a software code that can be used to automate a process and this allows you to automate a notification, call a webhook, or perform logic immediately after a workflow rule is triggered. This feature helps to automate complex tasks and calculations. 


Let us consider the below use case from a customer - 


With the integration between Zoho CRM & Zoho Projects, it is possible to associate a project with an Account/Contact/Lead only from CRM Interface but not from Projects Interface.


We received a specific requirement from a customer to associate a project with an Account in CRM from Projects Interface and we accomplished it using the combination of the following features



Steps to be followed :

  1. Add an Integration field to the project layout. 
  2. While adding the field, choose Zoho CRM in Service and Accounts in Modules.
  3. Select 2 Fields, the first is for Record ID and the second field is for Account Name.
  4. Confirm if the preview is "id- Account Name" then Save the layout.
  5. Create a custom function by navigating to Setup > Developer Space > Custom Functions > Projects > Create Custom Function > New.
  6. Name the custom Function, add arguments, select the layout, paste the below code in the deluge editor and save it.
  7. Navigate to Project Automation > Workflow Rules > New Workflow Rule.
  8. Name the workflow rule and select the layout. This workflow rule should be triggered when the project is created. 
  9. Under Actions, choose ‘Associate Custom Function’ option. Choose the custom function, associate it and Save the Rule.


How it works :


Just choose the Account name from the drop menu of the integration field. Automatically, project will be associated with that respective account in CRM 

Script to be used:


//TODO: Create a connection for Zoho CRM service with the scopes "ZohoCRM.modules.ALL" to Replace ‘XXXXXX’ with the connection name. Link to learn about establishing the connection. Attached screenshots for reference.

if(accountDetails != null)

{

 mp = Map();

 mp.put("name",projectName);

 datalist = List();

 datalist.add(mp);

 datamp = Map();

 datamp.put("data",datalist);

 resp = invokeurl

 [

  url :"https://www.zohoapis.com/crm/v2/Accounts/" + accountDetails.getPrefix("-") + "/Zoho_Projects/" + projectId

  type :POST

  parameters:datamp.toString()

  connection:”XXXXXX”

 ];

}

return "success";


Creating custom functions in Zoho Projects is straightforward and well-documented. Zoho provides a range of built-in functions that you can use as a starting point, and you can also easily define your own functions using Zoho's scripting language, Deluge. Give it a try and see how it can save your time and boost your productivity!

 

Watch this space for more such custom function codes. 



      • Sticky Posts

      • Four types of task dependencies

        "Nothing is particularly hard if you divide it into small jobs."                                                                                                                  - Henry Ford Projects, small or large, are driven by simple work units called tasks. Monitoring standalone tasks might look simple but as the workflow becomes elaborate, tasks may start relying on one another. In project management, this relationship between tasks is termed as "Task Dependencies". Dependency between tasks arise
      • Tip: How to print the Gantt View

        Though we move from the traditional project management system (using papers) to an online project management system, we still prefer to have a printed copy of the activities/tasks that are to be done in the project. This way, we can carry the to-do lists with us for the meetings and refer when we are offline. The print option, available at the right side of the page, allows the users to print the project information across all the modules. However, this option failed to print all the tasks & milestones
      • Project Management via Emails in Zoho Projects

        We write mails to communicate. In Zoho Projects, we can write mails to collaborate. Yes, Zoho Projects supports Email based project management. The mails that you send turn into tasks, bugs, project comments, forum replies, etc. The following are some of the frequently asked questions that might be of some help to you. What are the pre-requisites to manage my projects through Emails? You need to have a personal / business mail ID that is registered and confirmed with accounts.zoho.com To learn more
      • Task and Project numbering

        Zoho Projects now generates a unique number for each project, task, and issue added. The auto-generated ID is a combination of a prefix and a number which is assigned by Zoho Projects. The unique IDs for projects, tasks, and issues will be useful to track, identify, and search easily. You can modify the settings to enable or disable the Project and Task IDs.  Learn more on how to modify Prefix & ID settings for projects and tasks. Issue IDs cannot be disabled, only its prefix can be changed (tasks
      • Task Inline Editing Enhancement

        Hi All, Today, we have made an enhancement in task inline editing. In 4.0, task edit is moved in a single screen in a pop-up. We designed this in-order to make the task edit across the product to be the same. Let it be in Feeds, Tasks & My Tasks tab, Calendar & My Calendar tab, a click on the task title will open the popup and user can edit the values. Customers pointed us the inline editing was very useful to them & how much they miss that in 4.0. Based on the feedback, we have rolled out this enhancement.