Configuring Deluge script for approval workflows | Zoho Creator Help

Configuring Deluge script for approval workflows

What does this page cover

Learn how to configure Deluge script actions in Zoho Creator approval workflows to run custom logic and handle advanced operations when a record is submitted for approval, or when it is approved or rejected by an approver. Before proceeding, ensure you have a clear understanding of approval workflows and how to create them.

Availability 

  1. Available in all plans of Creator
  2. Can be accessed by super admin, admins, and developers

1. Deluge script for approval workflows

The Deluge script action allows you to write and execute custom logic using the Deluge scripting language as part of your approval workflows in Zoho Creator. This provides a flexible, code-based approach to automating actions and handling complex business scenarios that go beyond the capabilities of predefined actions available in the workflow builder.

You can configure this action to execute when a record is submitted for approval, or when it is approved or rejected by the approver. Using Deluge scripting, you can define advanced logic such as multi-step calculations, updating multiple related modules across applications, executing conditional logic involving external data, integrating with third-party services through custom API calls, or handling multi-level data validation.

Scripts are written directly in the Deluge editor within the workflow builder, enabling you to implement dynamic and conditional logic tailored to your application's approval process.

1.1. Steps to configure Deluge script

  1. Create an approval workflow and add an approver to open the workflow builder.
  2. Click Add New Action under the Approve or Reject section of the preferred approver level, or under the Actions to execute on start section of the workflow.
  3. Select when to run this action.
    1. By default, it is set to Always, which means the action will execute for all records.
    2. To run the action only for specific records, choose on condition and define the necessary condition or criteria. Learn more about configuring conditions in a workflow.

  4. Select Deluge script action to open the Deluge editor.
  5. Write the required Deluge code and click Save. You can also use the various features of the Deluge editor to simplify scripting. Learn more
  6. Click Done in the top right corner of your screen.

2. Points to note

  1. Info message cannot exceed 50KB. Otherwise, the message will be truncated.
  2. You can send up to a maximum of three email notifications with attachments. The maximum size of file attachments(audio, video, and image) allowed is 15 MB. If the attachments exceed this limit, the emails will be delivered without them.
  3. If you want to get the file content of the specified file or create a file object using the required content, the respective file size should be less than 2 MB.
  1. Configuring notification actions for approval workflows
  2. Configuring data access actions for approval workflows
  3. Configuring integrations for approval workflows
Previous
Previous

Before learning about configuring Deluge script actions in approval workflows, ensure you have an understanding of how approval workflows function and how they are configured.