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
    • 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.
    • Blueprint in Zoho Projects

      Often, we stumble upon tasks having the same status workflow. Repetitive task processes are tedious to handle, right? That’s why we have introduced Blueprint for task automation. Blueprint is a tool to organize tasks and automate them based on the workflow you design and the criteria you define.    How do I associate tasks with a blueprint? You can set the criteria while creating the blueprint such that when you publish a blueprint, the tasks that satisfy the criteria will be associated with the
    • Recent Topics

    • Marketing Tip #36: Optimize your online store for AI search

      Search is changing fast. Along with traditional search engines, AI-powered search and recommendation experiences are becoming a bigger part of how customers discover products online. Stores that are well-organized, descriptive, and consistent are more
    • Zoho Marketing Automation is upgrading its security standards: Here's what you need to know

      Hello, The Zoho Marketing Automation team here with an important security update. Keeping your data safe is something we take seriously, and as part of our ongoing efforts to strengthen platform security, Zoho Marketing Automation will stop supporting
    • Zoho developer edition does not work for us

      Hi Is anyone else having this problem? I'm signed in with our admin/super user account. When I click on the link on this page: https://www.zoho.com/crm/developer/docs/dev-edition.html I am asked to agree to Terms and Conditions. Clicking Agree to Terms
    • Zoho Campaigns is upgrading its security standards: Here's what you need to know

      Hello, The Zoho Campaigns team here with an important security update. Keeping your data safe is something we take seriously, and as part of our ongoing efforts to strengthen platform security, Zoho Campaigns will stop supporting older browsers and API
    • ShipStation and Zoho Inventory

      Hello, I am looking to sync zoho inventory with shipstation ZOHO INVENTORY           SHIP STATION Sales Order  ==>  create ORDERS INVOICE  <==    Shipments What exactly does BETA mean on the Shipstation connector?  This is required for me to sign-on in the next month. Thanks in advance for your efforts
    • What’s the Correct Integration Flow Between Zoho Inventory, ShipStation, and Multi-Channel Sales Platforms?

      Hi Zoho Community, I’m currently implementing Zoho One to manage all of my business processes, and I’d appreciate some guidance on the correct integration flow for the tools I’m using. Here’s my current setup: Zoho Inventory is my central system for managing
    • Automation Series: Schedule Function for repetitive tasks

      Many organizations that run multiple projects need the same activities happening at regular intervals. Activities may range between monthly maintenance, calibration, upkeep, or compliance checks. In this article, we shall discuss how to automate the process
    • Get item's custom field data for a custom button/function

      Hi, I’m working on a custom button for the Invoice details page in Zoho Books. I need to calculate a Tourism Levy only on some items. I already created an Item custom checkbox field: cf_tourism_levy In Zoho UI, the field is there and I can see it on the
    • Use Secure Public Links for Sharing Transactions

      Public links are the quickest way to send invoices or quotes to your customers. You can drop the link in an email, SMS, or WhatsApp message. But, links can be forwarded, and once they leave your customer's inbox, you can no longer control who sees your
    • Process large CSV file | forach limit

      Hello there, given is a CSV file that usually has between 500 and 1000 rows and consists of 31 columns. I would like to change the file uploaded by a user, a certain value must always be set in one column and only under certain circumstances in another
    • Zoho Apptics is now on Apple TV

      Zoho Apptics is now available on Apple TV, bringing your app’s insights to the big screen. With the Apptics tvOS app, you can: Monitor your app’s metrics like sessions, screens, crashes, active devices and new devices on a larger screen. Stay updated
    • Email Routing: Manage how emails are delivered across your organization

      Organizations often operate across multiple mail systems, whether during a phased migration from a legacy server, while maintaining backup servers, or when integrating with third-party archival solutions. In these scenarios, standard email delivery may
    • What is a realistic turnaround time for account review for ZeptoMail?

      On signing up it said 2-3 business days. I am on business-day 6 and have had zero contact of any kind. No follow-up questions, no approval or decline. Attempts to "leave a message" or use the "Contact Us" form have just vanished without a trace. It still
    • Updating Zoho Books UI when a field is changed

      I have this script to update Quotes Expiry date. estimateID = estimate.get("estimate_id"); numberDaysTobeExtended = 14; estimatedate = estimate.get("date").toDate(); organizationID = organization.get("organization_id"); estDate = estimate.get("date");
    • ZOHO FSM - Dispatch Console Drive time

      Is there a way to view drive time on a tech or estimate drive time from location to location? I need to see this on the Dispatch Console
    • Use Secure Public Links for Sharing Transactions

      Public links are the quickest way to send invoices or quotes to your customers. You can drop the link in an email, SMS, or WhatsApp message. But, links can be forwarded, and once they leave your customer's inbox, you can no longer control who sees your
    • 【参加無料】7月開催|Discover Zoho(金沢 /札幌)・AI and DX Summit(大阪)のご案内

      Zohoユーザーの皆さま 7月に開催予定のイベントを2つご紹介します。 どちらも参加無料で、Zohoをご利用中の方はもちろん、導入をご検討中の方もご参加いただけます。 ━━━━━━━━━━━━━━━━━━ 📍 Discover Zoho セミナー(金沢 / 札幌 / 福岡 / 仙台) ━━━━━━━━━━━━━━━━━━ Zohoの主要サービスをまとめてご紹介するセミナーです。 営業管理、人事、社内コミュニケーション、業務アプリ開発など、さまざまな業務課題に対して Zohoがどのように活用できるのかを、実際の業務シーンを交えながらご紹介します。
    • Function #62: Display associated Quote on Invoice details screen

      Hello everyone! Today, we are sharing a Related List script that makes it easy to view and access the quote from which an invoice was created right from the invoice details screen. This Related List displays the Quote number and Amount, allowing you to
    • Ability to select the attachment of a record when sending an email from FSM

      Hello FSM Team, FSM allows us to add attachments to any record (Estimate, Work Order, etc.). However, when we're sending an email from FSM, it is currently not possible to choose from the attachment in FSM to add to the email. When sending an estimate,
    • Temporary Telegram Messaging Restriction in India

      The Government of India has temporarily restricted access to Telegram in India. This action has been communicated by the National Testing Agency (NTA) through an official public notice. Read the full notice here. Impact As a result, Telegram messaging
    • Zoho Creator + LLMs using Zoho MCP: Bring contextual AI into your apps

      Hello everyone, We're excited to share that Zoho Creator can now be integrated with leading AI models(like Claude) using Zoho MCP. As you know, Zoho Creator has been a pioneering low-code platform with a razor-sharp focus on making it easy to build business
    • The 3.1 biggest problems with Kiosk right now

      I can see a lot of promise in Kiosk, but it currently has limited functionality that makes it a bit of an ugly duckling. It's great at some things, but woeful at others, meaning people must rely on multiple tools within CRM for their business processes.
    • Use Secure Public Links for Sharing Transactions

      Public links are the quickest way to send invoices or quotes to your customers. You can drop the link in an email, SMS, or WhatsApp message. But, links can be forwarded, and once they leave your customer's inbox, you can no longer control who sees your
    • 【開催報告】大阪 Zoho ユーザー交流会 NEXUS 2026/6/4(木)ZendeskからZoho Deskへ移行しコスト削減

      ユーザーの皆さま、こんにちは。コミュニティGの中野です。 6月4日(木)に、大阪 Zoho ユーザー交流会を開催しました。 本投稿では、その様子をお届けします。 当日の登壇資料などもこちらに共有しますので、参加できなかった皆さまもぜひご参照ください。 今回の大阪 ユーザー交流会では、ビープラスシステムズ株式会社 石井さんによるユーザー活用事例セッションのほか、 「Zohoで"これだけは外せない"ルーティーン」をテーマにしたグループワークを実施しました。 登壇いただいた石井さん、そしてご参加いただいたZohoユーザーの皆さま、ありがとうございました!
    • When will Zoho Books offer native NFS-e issuing, now with Brazil's National Standard?

      Hello Zoho Team and Community, I'd like to follow up on my previous suggestion regarding the critical need for Zoho Books to natively issue Brazilian Service Invoices (NFS-e). My original idea was that this could be achieved by extending the same integration
    • Zoho CRM custom button function, how to add line breaks/ new lines in the return message

      When creating button function in CRM it requires a `return "";` Then when the button is client by the user a message pops up with what ever is returned from the function. But I want to have a message with multiple lines, meaning I need to add a line break
    • Is there a way to update the forecast category independently from the deal's stage through an API?

      Hello, We're experimenting with the Forecast module and we've created custom categories to signal the top 10/50/100 deals currently in the pipeline. We would like to assign these categories automatically using custom functions but I found that the only
    • Small one person business needs everything in one place

      I just purchased a business and have a couple of your services. I would like to get everything in one place. I am a state trainer. I would like to get my invoices, payments, online classes, calendar for scheduling, maintenance, etc. in one place. can
    • Super Admin Logging in as another User

      How can a Super Admin login as another user. For example, I have a sales rep that is having issues with their Accounts and I want to view their Zoho Account with out having to do a GTM and sharing screens. Latest Update (27th April 2026): With the early
    • Re-Apply SLA When Ticket Reopened from Closed Status?

      If you have an SLA applied, timers are deactivated when going to "On Hold" status type and reactivated when going back to an Open status type. What we discovered is when a customer replies to a closed case and it reopens, the SLA is not applied and timers
    • Conditional Drop Downs

      Am I the only one that has a problem when setting up the same project for multiple customers - resulting in a HUGE number of projects (e.g. Project A - customer 1, Project A - customer 2, Project A - customer 3 etc.). OR, am I doing it wrong? What results
    • Automating CRM backup storage?

      Hi there, We've recently set up automatic backups for our Zoho CRM account. We were hoping that the backup functionality would not require any manual work on our end, but it seems that we are always required to download the backups ourselves, store them,
    • Lead score decay timing and excluding specific campaigns from scoring

      Hi team, I have two quick questions about lead scoring: 1. When does a lead's score start going down? Like, after how many days of no activity does the score begin to drop? 2. Is there a way to stop certain campaigns from adding points to a lead's score?
    • Summer release '26 should be called Enterprise Summer Release '26

      Summer release '26 should be called Enterprise Summer Release '26 because almost all updates or the more useful ones, are limited for Enterprise subscriptions. us with Basic or Premium susbcriptions are basically left in the cold.
    • ZoHo Mail & MCP connectors

      Is ZoHo working an MCP connector for mail?? I find it very useful in Gmail to have Claude summarize messages for me. Thanks Jim P.S. Sorry if this is the incorrect forum. Mods please adjust as necessary.
    • FINALLY! 100% Responsive iFrame for HTML Page Snippet

      For the past two years or so I have been battling with Page Snippets' responsiveness (HTML, Embed, and ZML). Furthermore, if you use the native embedded reports, especially more than one report on a page, you have to set a static height because they're
    • Associate project with timer on iPhone

      When I start the timer without first associating a project (on my iPhone), its starts fine but now when I need to associate a project, and click on the link, I get a list of EVERY project I've ever put into Zoho Books. It used to just show active projects.
    • Import and Export of website.

      Hi, i have raised this ticket regarding challenges i am facing while importing a website on zoho sites. I have created my website on Squarespace and now i want to move it to zoho sites so i want to know what i am supposed to do whats the correct step
    • Add multiple users to a task

      When I´m assigning a task it is almost always related to more than one person. Practical situation: When a client request some improvement the related department opens the task with the situation and people related to it as the client itself, the salesman
    • Important update on our transition to the new video platform framework

      As part of our ongoing platform changes, users in select regions, including the United States and other supported data center locations, have been migrated to our new video platform framework. Due to this migration, some participants may notice changes
    • Next Page