For Zoho Services only:


I'm actually part of something bigger at Ascent Business Solutions recognized as the top Zoho Premium Solutions Partner in the United Kingdom.

Ascent Business Solutions offer support for smaller technical fixes and projects for larger developments, such as migrating to a ZohoCRM.  A team rather than a one-man-band is always available to ensure seamless progress and address any concerns. You'll find our competitive support rates with flexible, no-expiration bundles at https://ascentbusiness.co.uk/zoho-services/uk-zoho-support.  For larger projects, talk to our experts and receive dedicated support from our hands-on project consultants at https://ascentbusiness.co.uk/zoho-services/zoho-crm-implementation.

The team I manage specializes in coding API integrations between Zoho and third-party finance/commerce suites such as Xero, Shopify, WooCommerce, and eBay; to name but a few.  Our passion lies in creating innovative solutions where others have fallen short as well as working with new businesses, new sectors, and new ideas.  Our success is measured by the growth and ROI we deliver for clients, such as transforming a garden shed hobby into a 250k monthly turnover operation or generating a +60% return in just three days after launch through online payments and a streamlined e-commerce solution, replacing a paper-based system.

If you're looking for a partner who can help you drive growth and success, we'd love to work with you.  You can reach out to us on 0121 392 8140 (UK) or info@ascentbusiness.co.uk.  You can also visit our website at https://ascentbusiness.co.uk.
Zoho Deluge - Multi-line Variable Assignments and Expressions

Zoho Deluge - Multi-line Variable Assignments and Expressions

What?
A short article explaining how Zoho Deluge allows a variable assignment to be written across multiple lines, as long as the statement ends with a semi-colon. This has a limited number of use cases, but is useful to be aware of if you have not come across it before.

Why?
In many Deluge scripts, assignments are often more than a single value. At times, it can be useful to copy and paste or temporarily format logic across multiple lines to improve readability while writing or reviewing code.

Do bear in mind that once the script is saved and re-opened, the code will be reformatted back onto a single line.

How?
Below are three examples demonstrating multi-line assignments in Zoho Deluge.

1) Multi-line string concatenation, converted into a map
This builds a JSON string over several lines, then converts it into a map so values can be accessed by key.

copyraw
v_InputData = "{"
    + "\"ID\":\"TEST-1001\","
    + "\"FirstName\":\"John\","
    + "\"LastName\":\"Doe\""
    + "}";
m_InputData = v_InputData.toMap();
info m_InputData.get("ID");
// yields "TEST-1001"
  1.  v_InputData = "{" 
  2.      + "\"ID\":\"TEST-1001\"," 
  3.      + "\"FirstName\":\"John\"," 
  4.      + "\"LastName\":\"Doe\"" 
  5.      + "}"
  6.  m_InputData = v_InputData.toMap()
  7.  info m_InputData.get("ID")
  8.  // yields "TEST-1001" 

This pattern can be useful when building request payloads for API calls or preparing structured data for reuse within a script.

2) Multi-line list declaration and item access
Lists can also be declared over multiple lines, which can help when the list is longer or subject to change.

copyraw
l_Items = {"a"
    , "b"
    , "c"
    , "d"
    , "e"
    , "f"};
info l_Items.get(3);
// yields "d"
  1.  l_Items = {"a" 
  2.      , "b" 
  3.      , "c" 
  4.      , "d" 
  5.      , "e" 
  6.      , "f"}
  7.  info l_Items.get(3)
  8.  // yields "d" 

This approach works well for reference lists, configuration values, or ordered datasets where readability during development is helpful.

3) Method chaining across multiple lines
Method chaining can be split across lines to make transformation logic easier to follow while writing or reviewing code.

copyraw
d_MethodTests = '02-Jan-2026'
    .addDay(3)
    .addMonth(1)
    .toDate();
info d_MethodTests;
// yields "05-Feb-2026"
  1.  d_MethodTests = '02-Jan-2026' 
  2.      .addDay(3) 
  3.      .addMonth(1) 
  4.      .toDate()
  5.  info d_MethodTests; 
  6.  // yields "05-Feb-2026" 

In all three cases, Deluge treats the semi-colon as the end of the statement, not the end of the line. This allows expressions to span multiple lines during editing while remaining valid.

When the code is saved and re-opened, it will be reformatted back into a single line, as shown below.

copyraw
//
v_InputData = "{" + "\"ID\":\"TEST-1001\"," + "\"FirstName\":\"John\"," + "\"LastName\":\"Doe\"" + "}";
m_InputData = v_InputData.toMap();
info m_InputData.get("ID");
// yields "TEST-1001"
//
l_Items = {"a","b","c","d","e","f"};
info l_Items.get(3);
// yields "d"
//
d_MethodTests = '02-Jan-2026'.addDay(3).addMonth(1).toDate();
info d_MethodTests;
// yields "05-Feb-2026"
//
  1.  // 
  2.  v_InputData = "{" + "\"ID\":\"TEST-1001\"," + "\"FirstName\":\"John\"," + "\"LastName\":\"Doe\"" + "}"
  3.  m_InputData = v_InputData.toMap()
  4.  info m_InputData.get("ID")
  5.  // yields "TEST-1001" 
  6.  // 
  7.  l_Items = {"a","b","c","d","e","f"}
  8.  info l_Items.get(3)
  9.  // yields "d" 
  10.  // 
  11.  d_MethodTests = '02-Jan-2026'.addDay(3).addMonth(1).toDate()
  12.  info d_MethodTests; 
  13.  // yields "05-Feb-2026" 
  14.  // 
Category: Zoho :: Article: 917

Add comment

Your rating:

Submit

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Accreditation

Badge - Zoho Creator Certified Developer Associate
Badge - Zoho Deluge Certified Developer
Badge - Certified Zoho CRM Developer

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF

Please publish modules in offcanvas position.