Beam Help
Get help now

How-to · Zoho CRM

How to Create a Report with Subforms from Two Modules in Zoho CRM

Reporting on subforms from two separate modules in Zoho CRM requires understanding how subforms link data across your system and what reporting tools can surface that information. The most practical approach depends on whether you need a simple data view or automated document generation tied to subform records.


Why this matters


Subforms let you associate multiple records from one module to another—for example, linking several Investor records to a single Loan record through a subform field. When you need to report on or act on that linked data, you face a challenge: standard CRM reports often flatten subform rows into tables, and you may need separate outputs for each subform entry. This matters if you're generating personalized documents, tracking many-to-many relationships, or syncing data across modules.


Step-by-step


Step 1. Confirm your subform structure.


First, verify that both modules have subforms set up correctly. A subform is a secondary table within a primary record that holds multiple line items from a related module.[3] For example, if your Loans module has a subform pulling Investor records, each Loan can have several Investor rows. Check that the subform field exists in your primary module and is linked to the correct related module.


Step 2. Choose your reporting method based on your output need.


If you need a simple data view showing all subform rows in a table format, Zoho CRM's standard report builder will display subform fields alongside main record fields. However, if you need to generate a separate document for each subform record (such as one contract per investor), you'll need a merge template approach instead of a traditional report.


Step 3. For document generation per subform row, use a merge template.


Create a merge template in Zoho Writer that pulls both main module fields and subform fields.[8] When building your template, you'll find subform fields listed in a dedicated "Subforms" tab alongside main fields and related list details.[8] The key is configuring the merge output correctly: select "Merge and save as an individual file" to generate one document per subform record, with dynamic file names based on the fields you choose.[8] This approach works well when you need up to 5–10 separate documents per parent record, each populated with one subform row's data.


Step 4. Configure the merge output and trigger.


In your Zoho Writer merge template, define how documents are created. You can merge as a new document, save individual files to Workdrive, send emails, or even route documents for signature collection if you have a Zoho Sign account.[8] Choose the output method that fits your workflow—for example, "Merge and send for sign collection" if each investor document needs a signature.[8] Set the merge to trigger manually or on a schedule depending on when you generate reports.


Step 5. For syncing subform data across two modules, use custom functions.


If your workflow requires updating subform records in two different modules simultaneously—for instance, keeping branch relationships in sync across multiple Account records—you can write a custom function that listens for subform updates in one module and mirrors changes to the other.[2] This is useful when you have many-to-many relationships and need consistency across both sides of the association.


Step 6. Test with sample data.


Run a test merge or report with a small set of records to confirm that subform fields are pulling correctly and that your output format matches your needs. Verify that multi-row subforms generate the correct number of documents and that field values are accurate.


Common pitfalls


Mail merge templates can only output one document per subform row if you configure the merge output correctly; if you select the wrong output option, you may get a single document containing all subform rows in a table instead of separate documents per row.[1] Additionally, if your two modules have subforms but they are not explicitly linked through a custom function or relationship field, changes in one module won't automatically sync to the other—you'll need to set up automation or a custom function to maintain that connection.[2]


What to check


  • Confirm that your subform fields appear in the Zoho Writer merge template under the "Subforms" tab and that the correct related module is selected.
  • Verify that your merge output setting is set to "Merge and save as an individual file" (or your chosen output method) so that each subform row generates its own document.
  • Test the merge with 2–3 sample records to ensure file names are dynamic and field values populate correctly before running it on your full dataset.

---


*This article is provided by Beam Help — independent expert support for Zoho. We are not official Zoho support.*

Originally asked in the Zoho community. See the original question →

Sources cited

  1. [1] Using Mail Merge Template to Print Documents with One Subform Record's Fields per Document
  2. [2] Function #41: Sync Associated Subforms!
  3. [3] CRM | Managing Subforms | Knowledge Base
  4. [4] Zoho CRM Q1 2025 Update
  5. [5] App Spotlight: HyperForm for Zoho CRM
  6. [6] Step up your lead generation game with online forms
  7. [7] Spotlight series #32: Turn CRM data into personalized presentations
  8. [8] Bigin and Zoho Writer : Merge templates
Zoho CRM Report with Subforms: How To | Beam Help