How to Automatically Populate the Deal ID in the Parent Lead After Creating a New Deal with Blueprint?

How to Automatically Populate the Deal ID in the Parent Lead After Creating a New Deal with Blueprint?

Hello Everyone! 🎉

I wanted to share a solution to a problem that some of you might have encountered. In Zoho CRM, when creating a Deal from a Lead using a Blueprint, data can only flow in one direction—from the Lead (parent) to the Deal (child). But what if you need the newly created Deal’s ID to be automatically added back to the Lead?

The Problem:
When creating a new Deal, it’s straightforward to pass the Lead ID to the Deal via a custom field, but there’s no native way to automatically link the new Deal’s ID back to the originating Lead.

The Solution:
I worked around this limitation by using a short Deluge script in a workflow that triggers after the creation of a new Deal. Here’s how it works:

  1. While creating a Deal via Blueprint, I populate a custom field in the Deal (Lead_ID_before_conversion) with the Lead’s ID.
  2. A workflow runs a Deluge script that:
    • Retrieves the Lead ID from the Deal’s custom field.
    • Updates the Lead with the ID of the newly created Deal.

Deluge Script:

void automation.FetchDealIDToMotherLead(int recordId)
// Fetch the Deal record based on the passed ID in JSON format dealInfo = zoho.crm.getRecordById("Deals", recordId, "json"); // Retrieve the Lead ID from the Lead_ID_before_conversion field leadIdJson = dealInfo.get("Lead_ID_before_conversion"); if(leadIdJson != null) { // Extract the ID directly from the JSON object leadId = leadIdJson.get("id"); // Update the Lead by setting the Deal_ID_after_conversion field to the current Deal ID leadMap = Map(); leadMap.put("Deal_ID_after_conversion", recordId); updateLead = zoho.crm.updateRecord("Leads", leadId, leadMap); } }

Steps to Implement:

  1. While creating the Deal in your Blueprint, make sure the field Lead_ID_before_conversion is populated with the originating Lead’s ID.
    (I’attach a screenshot showing where to configure this in the Blueprint!)

  2. Create an automated workflow for newly created Deals that triggers the Deluge script.

With this simple solution, you can effectively connect Leads to their Deals and streamline your data management! 😊

If you have any questions or need more details, feel free to ask! 💬


Best Regards
Katarzyna Ochnik
kochnik | LinkedIn





        • Recent Topics

        • Linking a Zoho Projects Task to a Zoho Desk Task via API

          Linking a Zoho Projects Task to a Zoho Desk Task via API Hey everyone, I want to create a task in Zoho Desk from Zoho Projects. We use Zoho Desk Tasks for workload distribution. As an IT service provider, we handle tasks generated from support tickets
        • Deluge Function to Update Custom Field

          I'm trying to get a Deluge function (which will run as part of a Schedule in Desk) that retrieves all tickets with the status "Recurring" and updates the custom field checkbox "cf_recurring" to "true". Here's what I have, which doesn't work: searchValue
        • reports

          i want to see branch wise sales report accordingly how to customize it can you please give me a demo accordingly
        • Preventing auto-redirect to Parent Record on Save...

          Our users often create records from the related list on th left side of the screen. They click the blue "plus" button to create the record. This is handy, but for some modules, or situations, they would like to remain on the record AFTER clicking "Save",
        • Exciting Update: Multi WhatsApp Business Account (WABA) Support Now Available in SalesIQ!

          We’re pleased to share an important update that will enhance the way you manage your WhatsApp Business accounts (WABAs) within SalesIQ. With the launch of Multi WABA support, you can now connect and manage multiple brands more effectively, each under
        • Track Partially Raised PO from Sales Orders

          If I have a sales order with 15 items and I converted it to a Purchase Order with 12 Items These items are invoiced and billed, the next time I convert it to a PO i should get 2 items listed but it shows all the items again Why doesn't Zoho Track the
        • Quote printing

          The CRM software is relly amazing. It's just what we need to grow with...EXCEPT...for one big thing. Printing out quotes needs work. When I try to put a signature line at the bottom of the Terms, it prints as a bunch of quote markes. ("). When I have ZOHO make a PDF, it looks bad. I tried the Print Preview, and it looked much better, but to print it, I have to go into Print Preview and turn off the header & footer or else the URL info shows up. As robust as CRM is, it can't be that hard to fix the
        • Chromium: On open Writer document , Aw Snap

          Opening Writer document does not work in Chromium browser. On open any document, it appears for the moment, then disappear with Aw Snap! Something went wrong displaying this message. Error code: RESULT_CODE_KILLED_BAD_MESSAGE Chromium: Version 136.0.7065.0
        • Possible to filter out contacts that hasn't opened emails in Cadence?

          We use Cadences in various outreach - is it possible in analytics or reports to filter out the contacts that have not opened their emails?
        • Recurring Split Expenses

          Some of my most common recurring expenses need to be split between accounts. An example is individual HSA (health savings account) contributions. Every week, a separate transaction for each employee is made that transfers a set amount into their individual
        • Workflow Based on Manual Journal

          Manual journal entries are one of the few areas that cannot kick off a workflow automation in Zoho Books currently. I would propose considering adding that. My use case is that the payroll provider I use (a flavor of SurePayroll) has a Zoho Books automation
        • Zoho Books | Product updates | March 2025

          Hello users, We have rolled out new updates in Zoho Books to enhance your accounting experience. These include the ability to create workflow rules for manual journals and Multi-Factor Authentication (MFA) for customer and vendor portals. Explore these
        • zet pack not working

          We are using the zet pack command to package our Zoho extension. However, after running the command, the extension gets packed, but the resulting package is empty. We've attached a screenshot for reference. Could you please assist us with resolving this
        • On Duty Requests using API

          Currently we can only do attendance entries using API, we need to make on Duty Requests using API Use Case We are using different on premise devices to track meetings, we want to sync this data with Zoho People Currently we are manually making on duty
        • Owner's Draw

          Example: I have a charge account at ABC Company. During the month I charge one $50 item for my business. I also pick up a $20 item for personal use. At the end of the month, I receive a statement with a balance due of $70 and I want to PAY THE ENTIRE
        • Zoho Forms API

          Is there any way to get all form entry list using API? Looking forward to hear from you
        • Uploads in creator app

          So I have a file upload in the app, I can upload the file to it easily, but can't then download that file, there appears to be no option to?
        • Bulk Delete Images

          How do I bulk Delete Images from Zoho Campaigns. We have been using the Zoho since 2019 and can still only see the option to delete images one by one and we have a lot of old Campaign imagery we don't need anymore. Thanks!
        • Approval workflow for employee profile form

          Hi, i have a requirement that whenever employee updates certain fields in profile, it should go for HR approval   Specifically, I need to setup below   1. Approval should be triggered only if certain fields are changed. For eg. marital status, education details and address 2. New changes should be reflected only if those are approved by HR... if rejected, changes should not be updated in employee profile 3. Option to attach supporting documents for these changes while submitting for approval 4. Approving
        • How to configure Choice-based Field Rules??

          I have multiple choice, drop down and subform in what i created. However, I can't configure the choice based rules. There's no button link for that. Please help https://forms.zohopublic.com/specialevents1/form/IslandKidsConference2025/formperma/ZCXs
        • Multiple domains,

          Hi I have two domains set in one account on Zoho. One is primary domain and the other is alias. Can I switch these so that alias domain become primary domain? If I make my Alias domain to Primary, will I be able to send and receive emails using this
        • Last activity time is acting like last modified time

          When i edit the description or any field in the potential, account, contact and lead, the Last Activity Time is being updated like the Modified Time. This is messing all workflows and reports and we are unable to track real last time of activities like mentioned in this KB article http://crmkbase.zoho.com/what-is-the-difference-between-record-modified-time-and-record-last-activity-time
        • Prevent invalid entries in forms using Form Field Validations

          Greetings, Forms are crucial for collecting customer information, but inaccurate or improperly formatted submissions can disrupt your business operations. Imagine a phone number entered as random text, an email address missing its domain, or a date field
        • Kaizen #181 - Mandating Subform Data for Blueprint Transitions using Widget

          Hello Developers! Welcome back to another week of Kaizen! This time, we are tackling a common challenge on how to enforce subform data from a different module before allowing a blueprint transition in Zoho CRM Deals module. Many CRM workflows require
        • Make function for repeating code

          Hi, It's me again with my questions... 😅 In my Creator app, there's code that repeats itself in several places. And repeating code necessarily means optimization. So I'm trying to create a custom function to centralize my code in a single place and call
        • Searching for Zoho CRM newbies or users who ...

          I'm looking for people who, like me, want to get started with Zoho CRM and use it better. For mutual motivation. Am I in the right place? Or are there other, more suitable Zoho groups for this?
        • Automation#33: Automate Splitting Names for Existing Contact Records

          An organized directory – who doesn't love one? Previously, we explored how to split contact names into First Name and Last Name for new contacts in Zoho Desk. But what about existing contacts already in your database? This week, we bring you a custom
        • Line chart customization

          Hi, is there any way to draw multiple lines on a single line chart. Now on te x-axis im displaying dates and on the y-axis dispalying total records count. I want to display multiple lines on the same chart. The sample image is attached
        • Change Background in PDF Template

          Background PDF Hi, I want to ask a question. I want to create a background template with my own image. Above is an example that I made, why does the result not fit the A4 format? Like cut off. I used an A4 Portrait image, is there a size error? can you
        • The ability to show fields from subforms when viewing from related list

          Hi there, Currently im only able to display default columns , however when im unable to add the columns/fields from the subform Ive created. below is a field called quantity from the subform. Im not able to search up this field from the manage column
        • Limits on workflow never disclosed, not documents and now being applied. I feel scammed and there is no reply for support.

          Hello everyone, I’m facing a critical issue with Zoho Recruit and would appreciate any insights from fellow users or someone from Zoho. For months, I’ve been receiving daily emails stating that I have reached the maximum workflow custom functions limit.
        • Dialing Microsoft Teams Phone Service via Zoho CRM

          I am using the VOIP option in Microsoft teams for my office phone system. I was hoping to have a way to dial numbers directly from Zoho CRM, but don't see anything in the Teams Integration or in the Telephony integration that will enable this. Does anyone
        • Zoho Projects API v3 - How to format filter critera in deluge

          I'm trying to return the id of a client company in the Zoho Projects API using Zoho Flow and am running into issues about how I format critera in deluge. https://projects.zoho.com/api-docs#clients#get-clients I have several hundred Client Companies, and
        • Bad change: Zoho Notebook Android app requiring Google Play Store login

          I have been a Zoho user for a decade or so, and a One subscriber for several years. There are always areas for improvement, but on the whole, I've been quite happy with it. A big part of my choice to go wtih Zoho is that I value data privacy, and try
        • CRM x WorkDrive: File storage for new CRM signups is now powered by WorkDrive

          Availability Editions: All DCs: All Release plan: Released for new signups in all DCs. It will be enabled for existing users in a phased manner in the upcoming months. Help documentation: Documents in Zoho CRM Manage folders in Documents tab Manage files
        • Add Facebook Pages Triggers and Actions in Zoho Flow

          Hi, We would like to request an enhancement in Zoho Flow to support Facebook Pages triggers and actions. Why Facebook Pages Integration is Important Facebook remains one of the most significant social media platforms for businesses, offering powerful
        • Issue with syncing zoho campaigns with zoho crm

          Hi there, I want to sync both zoho campaigns with zoho crm however i have encountered some issues with this. when clicking manage in zoho i receive this message even though im using the same account and its an admin account. however when i go to zoho
        • Deal Updated by Workflow Rule/Automated Function does NOT Trigger Zoho FLOW!!

          We have multiple Flows setup that are triggered by "Updated Deal" in Zoho CRM. These have worked great. Recently, in Zoho CRM, we set up a workflow rule to update a field based on date/time field. NOW, when the workflow rule triggers and automatically updates a field in Zoho Deals, that does NOT trigger to Zoho Flow. This needs to be fixed! The reason we set this automated function within the workflow rule to update a field is so that could trigger a specific flow within Zoho Flow to do stuff. But
        • 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.
        • Zoho CRM Roles to Zoho Desk

          I have created my role hierarchy in Zoho CRM, Can i import/sync those roles from CRM to Desk or should i create role hierarchy again in Desk?
        • Next Page