Understand Batch Workflows | Zoho Creator Help

Understand Batch Workflows

1. What Does This Page Cover?

Learn how you can efficiently split your larger tasks into smaller batches and process them at off-peak hours using batch workflows.

2. Availability

Batch workflows feature:
  1. Is only available for paid plans of Creator, with a limited number (refer Things to Know) of batch blocks for each plan
  2. Can only be created, enabled, and managed by the super admin, admins, and developers, while other users can benefit from the automated execution of repetitive tasks.
  3. Is available in all data centers

3. Overview

Batch processing is used to efficiently and periodically complete high-volume and repetitive data jobs by splitting the data at hand into manageable batches. Each batch is then processed separately in an asynchronous flow. This method requires minimal human interaction and can be run sequentially throughout the day or at customized intervals. Some common business processes that can use batch processing include generating reports, printing documents, or updating information at the end of the day.

4. Batch workflows in Creator

In Creator, workflows comprise a set of actions that can be configured to execute at specific instances to automate routines in your application. Batch workflows enable you to efficiently execute customized Deluge scripts on a large volume of data, either after successful import or at scheduled intervals. You can choose to split the bulk records into smaller batches ranging from 10 to 1000 records per batch, and configure actions to be run for every record in a batch block (collection of grouped records) in the Execution section. You will then be shown the Before and After section wherein you can specify the actions to be triggered before and after the execution of the above deluge script. For example, instead of processing every order as it occurs, you can configure a batch workflow to collect all orders at the end of each day and share them with the order fulfilment team.  This splitting of data processing helps you overcome Deluge's execution limitations (10-50k statements limit) and ensures smooth processing of large datasets. 
  1. You can select a batch size that optimizes the overall script execution time and resource utilization, thus balancing performance with processing efficiency.
  2. If an error occurs in one of the batches during the batch workflow execution, that particular batch alone will be reverted. This means that an error in one batch doesn't affect the successful execution of other batches in the same batch block.

4.1 Examples of processes that batch workflows can automate

Batch workflows can be configured to process various types of data requests, some of which commonly include:
  1. Periodic billing - Calculate the total amount periodically for individual billing dates.
  2. Invoice generation - Generate sales invoices as per your requirements
  3. Payroll processing - Mail monthly salary slips for each employee in your organization.
  4. Inventory management - Track the product stock periodically to ensure they never go out of stock.
  5. Detect fraudulent transactions - Generate monthly statement bills for credit cards to detect frauds.
Batch workflows increase operational efficiency, automate repetitive tasks, and maximize productivity for your business, all while reducing manual supervision of repetitive tasks. 

5. Stages in a Batch Workflow Execution

A batch workflow includes the following three stages, with the ability to configure individual actions for each stage. 
Note: The Before and After Execution blocks are optional based on your requirements. However, you must configure the script to be executed in the During Execution block.



  1. Before Execution of Batch Workflow:  You can define variables, initialize their usage (applicable to be used in other two blocks as well), and configure the required actions to be carried out before the execution of batch workflow begins. Examples of initialization actions include sending notifications before the process begins, webhook calls to fetch stock from inventory and prepare a list from a response, and so on. Learn how
The Before Execution block will be executed first upon start of the batch workflow execution and will be executed only once.
  1. During Execution of Batch Workflow: Here, you can configure a single action to be executed for every record in a batch block. This action will be performed for every record when the batch workflow execution is in progress. For example, you can configure to calculate every employee's monthly salary that includes taxes, benefits, and much more. Learn how
The During Execution block will be executed in iteration until all batch blocks in that batch workflow are completed.
  1. After Execution of Batch Workflow: You can configure actions to be executed after the execution of all batches to handle both the success and failure scenarios, such as allowing cleanup tasks, displaying respective (success/failure) notifications, and error handling. For example, you can configure to notify an employee through email to  them about their monthly payslip after the successful completion of your batch workflow execution. Learn how

6. Prerequisites

  1. You must have a form in your application based on which you can configure a batch workflow.
  2. You need to decide when to trigger the batch workflow and an idea of the number of records i.e each batch's size.

7. See How it Works

Let’s assume that your organization issues credit cards and has built a Creator application named Credit Card Management. You need to generate and send billing statements on the first of every month to your respective customers. To do so, you can schedule batch workflows to be run on the 1st of every month with the action configured to generate relevant statements. You can also utilize variables for dynamic calculations like deriving the total bill amounts for each customer. Upon successful execution, you can configure the monthly credit card billing statements to be sent as attachments via email. 

8. Use Cases

Case 1: After successful import of records
In the sales and marketing ecosystem, managing leads efficiently is paramount for driving conversions and increasing revenue growth. Let's assume you've created a Creator application named Leads Management.  
Your organization receives a huge volume of leads from various sources, including imports from third-party platforms. Each lead requires a lead score calculation based on various attributes like engagement level, demographic data, and past interactions. Additionally, assigning the right lead owner based on territory, expertise, or workload is crucial for timely follow-ups and conversions. However, manually processing these tasks for a significant number of leads is time-consuming and prone to human errors. 
Imagine that you're importing these leads into your application. To streamline this process, you can create a batch workflow to be executed after successfully importing the leads. You can configure actions to calculate the lead scores and assign lead owners to the imported leads. 
Before Execution Block
  1. Perform initialization tasks, including notifications to relevant stakeholders about the commencement of lead processing.
On Execution of Batch Block
  1. Configure the batch size to handle leads in manageable chunks.
  2. Develop scripts to calculate lead scores based on predefined criteria and assign appropriate lead owners using territory mapping or workload distribution algorithms.
After Batch Execution Block
  1. Implement actions based on the success or failure of batch execution.
  2. Notify stakeholders about the completion of lead processing and provide insights into the processed leads, including statistics on lead scores and ownership assignments.
  3. This feature enables automated processing of lead data in manageable batches, ensuring efficiency and accuracy.


Case 2: Set custom schedule  

Let's assume you manage an ecommerce system that receives orders throughout the day. You've created a Creator application named Order Management. As a marketing manager, you want to run a process every month that aggregates customer feedback from your application reports and generates a report on customer satisfaction. You can create a batch workflow, specify the data source, and process the required scripts to be run at a specified time, and share the collected data easily with stakeholder.

9. Navigation Guide to Create a Batch Workflow

Navigate to the Solutions module and open the required application. Next, click the Workflow tab at the top to navigate to the workflow dashboard. Here, you can select the batch workflows section and follow the steps mentioned here.


10. Things to Know

  1. You can configure batch workflows after successful import of your application's records or at a specified time.
  2. You can create multiple batch workflows based on the same form with different or identical conditions. 
  3. All the batches in a batch block will be executed sequentially.
  4. You can track the status of batch workflow executions through the application logs section. It provides visibility into the queue status, in-progress executions, and completion status (success or failure).
  5. You can view error logs for the first five batch block failures, providing insight into the reasons for execution failures.
  6. If one or more batches in a block fail, that particular batch alone will be reverted, and the batch workflow will still continue executing other batches. You can view the that block's failure message in logs.
  7. If 15 consecutive batches fail, the batch workflow will be terminated. Successful batches completed up to that point will not be reverted.
  8. The execution will also be terminated if the daily batch workflow limit is reached.
  9. You can execute batch workflows for batches in sizes of 10, 50, 100, 200, 500, and 1000 records.
  10. You can create up to 100 batch workflows at a time in your account.
  11. You can execute up to a certain number of batch block executions per account in a day based on your pricing plan. 
  12. The execution timeout for each batch is set to 1 minute. For example, if a batch block's size is configured as 1000, then the timeout for the execution of those 1000 records will be 1 minute.
  13. Similarly, the timeout for before and after execution batch blocks is 30 seconds each.

11. Limitations

  1. This workflow is currently not supported for integrations forms.
  2. Users can create up to 5 variables within a batch workflow.
  3. Only one batch workflow can be executed concurrently for an account (based on creation date). This means that additional batch workflows will be queued for execution, thereby ensuring fair resource allocation and preventing overload on system resources.
Deluge limitations
  1. The "old" keyword is not supported in batch workflows.
  2. Info message cannot exceed 50 KB. Otherwise, the message will be truncated.
  3. The maximum size of file attachments allowed is 15 MB. If the attachments exceed this limit, the emails will be delivered without them.
  4. If you want to get the content of the specified file or create a file object using the required content, the respective file size should be less than 5 MB.
  5. getUrl() and postUrl() tasks are currently not supported.
  6. You cannot assign values to global variables.
  7. The operations for fetch with range and delete are limited to a maximum of 5000 records. 
  8. The following Deluge operations are not supported in batch workflows
    1. Fetching all values of a field
    2. Using distinct (aggregate functions) on fetched records
    3. Using getAll built-in function
      1. Client functions
    Note: The above mentioned restrictions will also apply to function calls triggered from batch workflows. 
    1. Understand records
    2. Create and manage batch workflows

          Create. Review. Publish.

          Write, edit, collaborate on, and publish documents to different content management platforms.

          Get Started Now


            Access your files securely from anywhere

              Zoho CRM Training Programs

              Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

              Zoho CRM Training
                Redefine the way you work
                with Zoho Workplace

                  Zoho DataPrep Personalized Demo

                  If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                  Zoho CRM Training

                    Create, share, and deliver

                    beautiful slides from anywhere.

                    Get Started Now


                      Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                      BOOK A SESSION







                                  Quick LinksWorkflow AutomationData Collection
                                  Web FormsEnterpriseOnline Data Collection Tool
                                  Embeddable FormsBankingBegin Data Collection
                                  Interactive FormsWorkplaceData Collection App
                                  CRM FormsCustomer ServiceAccessible Forms
                                  Digital FormsMarketingForms for Small Business
                                  HTML FormsEducationForms for Enterprise
                                  Contact FormsE-commerceForms for any business
                                  Lead Generation FormsHealthcareForms for Startups
                                  Wordpress FormsCustomer onboardingForms for Small Business
                                  No Code FormsConstructionRSVP tool for holidays
                                  Free FormsTravelFeatures for Order Forms
                                  Prefill FormsNon-Profit

                                  Intake FormsLegal
                                  Mobile App
                                  Form DesignerHR
                                  Mobile Forms
                                  Card FormsFoodOffline Forms
                                  Assign FormsPhotographyMobile Forms Features
                                  Translate FormsReal EstateKiosk in Mobile Forms
                                  Electronic Forms
                                  Drag & drop form builder

                                  Notification Emails for FormsAlternativesSecurity & Compliance
                                  Holiday FormsGoogle Forms alternative GDPR
                                  Form to PDFJotform alternativeHIPAA Forms
                                  Email FormsFormstack alternativeEncrypted Forms

                                  Wufoo alternativeSecure Forms

                                  TypeformWCAG

                                    Zoho FSM Video Tutorials


                                          All-in-one knowledge management and training platform for your employees and customers.

                                                    Create. Review. Publish.

                                                    Write, edit, collaborate on, and publish documents to different content management platforms.

                                                    Get Started Now




                                                                      You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                          Manage your brands on social media


                                                                            • Desk Community Learning Series


                                                                            • Digest


                                                                            • Functions


                                                                            • Meetups


                                                                            • Kbase


                                                                            • Resources


                                                                            • Glossary


                                                                            • Desk Marketplace


                                                                            • MVP Corner


                                                                            • Word of the Day


                                                                            • Ask the Experts


                                                                              Zoho Sheet Resources

                                                                               

                                                                                  Zoho Forms Resources


                                                                                    Secure your business
                                                                                    communication with Zoho Mail


                                                                                    Mail on the move with
                                                                                    Zoho Mail mobile application

                                                                                      Stay on top of your schedule
                                                                                      at all times


                                                                                      Carry your calendar with you
                                                                                      Anytime, anywhere




                                                                                            Zoho Sign Resources

                                                                                              Sign, Paperless!

                                                                                              Sign and send business documents on the go!

                                                                                              Get Started Now




                                                                                                      Zoho TeamInbox Resources





                                                                                                                Zoho DataPrep Demo

                                                                                                                Get a personalized demo or POC

                                                                                                                REGISTER NOW


                                                                                                                  Design. Discuss. Deliver.

                                                                                                                  Create visually engaging stories with Zoho Show.

                                                                                                                  Get Started Now








                                                                                                                                      • Related Articles

                                                                                                                                      • Create and Manage Batch Workflows

                                                                                                                                        1. What Does This Page Cover? Learn how you can efficiently split your larger tasks into smaller batches and process them at off-peak hours using batch workflows. Before you proceed to create a batch workflow, check this page to understand about ...
                                                                                                                                      • Understanding workflows

                                                                                                                                        In a nutshell Workflows are rule-based automations that streamline business processes by triggering specific actions when certain events occur in your application. They help eliminate repetitive tasks, reduce manual effort, and ensure consistent data ...
                                                                                                                                      • Managing report workflows

                                                                                                                                        What does this page cover Learn how to manage the workflows associated with actions items in your Zoho Creator application reports to edit, enable, disable, and rearrange actions configured in the report workflows. Before proceeding, Make sure you ...
                                                                                                                                      • Zoho Creator : Best practices to build better apps

                                                                                                                                        What does this page cover This page outlines recommended best practices for building efficient and scalable applications in Zoho Creator. It covers guidelines for designing apps, structuring forms and fields, organizing data, writing optimized Deluge ...
                                                                                                                                      • Billing

                                                                                                                                        In a nutshell Billing in Zoho Creator helps you easily manage your subscription, check your current billing plan, and understand the details and limits of your usage. You can view your plan type, number of users, app limits, data storage, and ...
                                                                                                                                        Wherever you are is as good as
                                                                                                                                        your workplace

                                                                                                                                          Resources

                                                                                                                                          Videos

                                                                                                                                          Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                          eBooks

                                                                                                                                          Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                          Webinars

                                                                                                                                          Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                          CRM Tips

                                                                                                                                          Make the most of Zoho CRM with these useful tips.



                                                                                                                                            Zoho Show Resources