Support for Return Statements in Custom Code Action

Support for Return Statements in Custom Code Action

What's New?

We are pleased to introduce an improvement to our custom code feature by enabling the use of return statements in asynchronous functions.

Previous Behavior

Previously, users could write asynchronous code and attach the response to a global output variable. While functional, this approach required an extra step, making the coding process a bit cumbersome.

New Behavior

Now, users can also return a response directly from their custom code. This streamlines the process, allowing for more intuitive and efficient code management.

Why This Matters

  • Streamlined Coding Experience: The ability to use return statements simplifies the coding process, making it easier to write, debug, and manage custom asynchronous code.
  • Enhanced Efficiency: Handling asynchronous operations seamlessly improves the overall efficiency of custom scripts. This improvement ensures that responses can be managed more straightforwardly, reducing the potential for errors and making code maintenance easier.

Visual Aid

To further illustrate these changes, take a look at the following images:

Direct Response Return Example 1
Direct Response Return Example 2

By incorporating this new feature, we aim to make your coding experience as efficient and painless as possible. Enjoy the enhanced capabilities and streamlined workflow this update has to offer!


In Case You Missed It:

Check out our latest updates to stay informed about other exciting features and enhancements at SMBcrm!

SMBcrm ©2024 | All Rights Reserved