Home Glossary Zoho CRM Deluge Map Object
Zoho CRM

Deluge Map Object

A Deluge Map is a key-value data structure in Zoho’s Deluge scripting language, similar to a dictionary in Python or an object…

A Deluge Map is a key-value data structure in Zoho’s Deluge scripting language, similar to a dictionary in Python or an object in JavaScript. Maps are used extensively in Zoho CRM Custom Functions to build API request payloads, store fetched record data, and pass structured data between function calls.

Using Maps in Zoho CRM Custom Functions

Maps are created with {} syntax: dealData = {"Deal_Name": "Enterprise CRM Project", "Amount": 500000, "Stage": "Proposal Sent"};. When calling the Zoho CRM API to create or update a record, the payload is passed as a Map. The zoho.crm.createRecord("Deals", dealData) call expects a Map where keys are the API field names.

Nested Maps

Maps can be nested within other Maps to represent complex data structures. For example, a Deal payload with a Subform section requires a nested Map structure where the product line items are a List of Maps. Understanding nested Map structures is essential for working with Zoho CRM’s API in Deluge.

Industry Example

SaaS Platform: A Deluge Custom Function fetches a closed Deal record and constructs a Map payload to create a Zoho Books invoice. The Map has keys for customer ID, line items (a nested List of Maps), payment terms, and due date. The Map is then passed to zoho.books.createInvoice() to generate the invoice automatically on deal closure.

Frequently Asked Questions

What is a Deluge Map Object in Zoho CRM?

A Deluge Map is a key-value data structure used in Zoho CRM Custom Functions. Maps are used to build API payloads for creating and updating CRM records, store fetched record data, and pass structured data between function calls. They are one of the most frequently used data types in Deluge.

Need help implementing this in Zoho?

Aaxonix is a certified Zoho implementation partner based in Pune. Architecture-first, no surprises.