For Zoho services only


I'm currently part of a wider delivery team at Ascent Business Solutions, recognised as a leading Zoho Premium Solutions Partner in the United Kingdom.

Ascent Business Solutions support organisations with everything from targeted technical fixes through to full Zoho CRM implementations and long-term platform adoption. Working as a team rather than a one-person consultancy allows projects to move forward consistently, with access to the right skills at each stage.

The team I manage specialises in API integrations between Zoho and third-party finance and commerce platforms such as Xero, Shopify, WooCommerce, and eBay. Much of our work involves solving integration challenges that fall outside standard documentation, supporting new ideas, new sectors, and evolving business models.

Success is measured through practical outcomes and return on investment, ranging from scaling small operations into high-turnover businesses to delivering rapid gains through online payments, automation, and streamlined digital workflows.

If you are looking for structured Zoho expertise backed by an established consultancy, you can contact Ascent Business Solutions on 0121 392 8140 (UK), email info@ascentbusiness.co.uk, or visit https://www.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 Deluge :: Article: 440

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