Create and manage batch workflows | Zoho Creator Help

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 batch workflows.

2. Availability

Batch workflows feature
  1. Is only available for paid plans of Creator, with a limited number 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. Setting Up Batch Workflows

3.1 Batch Workflow Creation Flow


3.2 See How To Configure


3.3 Steps to Create a Batch Workflow

3.3.1 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.

Step 1: Create Batch Workflow

1. Navigate to the Solutions module and open the required application.
2. Click the Workflow button at the top to navigate to the workflow dashboard.
3. Select Batch Workflows and follow either of the below steps as applicable.
  1. If you're creating a batch workflow for the first time, click Create Batch Workflow at the centre.
  2. If you've already created batch workflows, click New Batch Workflow at the top-right.

4. Choose the required Form and when to trigger the workflowOn Import or On Schedule.
  1. On Import: If this option is selected, the batch workflow that you've configured will be executed after your records have been successfully imported.
  2. On Schedule: If this option is selected, the batch workflow that you've configured will be executed at the specified date and time.

5. If you've chosen the On Schedule option, follow the below steps. Otherwise, proceed to step 6
Note: If the date frequency you've set doesn't apply to the subsequent month(s),  the respective batch workflow's execution will be skipped for that month. Let's assume you've configured the workflow to run on the 31st of every month, then the workflow will be skipped for the months that have fewer than 31 days.  
  1. Choose the required date and time during which you want the batch workflow to be executed
  2. Choose the frequency of the schedule.

6. Enter a name for your batch workflow and define when to Run this workflow.
  1. Always is selected by default
  2. Select on condition, then set the required criteria
7. Click Create Batch Process. You'll be taken to the workflow builder.

Step 2 : Configure During Batch Execution 

1. Click Add New Action to add an action to be executed for every record in a batch block.



2. Enter the required script and click Save.
You can find the sample script attachment at the end of this page.



3. Hover over the Deluge script preview to Manage the script if required. You can click the delete icon to delete the added script.
It is not recommended to edit or delete the script when the batch workflow execution is in progress, as the current and upcoming batch blocks' execution may fail due to alteration of the existing script.



Step 3 : Configure Before Batch Execution 

The below screen shows the workflow builder after entering details in the previous step.

Note: The Before Execution block is optional based on your requirements. However, you must configure the script to be executed in the During Execution block.



1. Expand the Variables section in the Before Batch Execution section.

2. Click Manage Variables. The Variables pane will slide in from the right.



3. Click Add Variable.



4. In the popup that appears, select the Data Type and enter the Variable Name, then click Add. The variable will be added to the Variables section.



5. Click +Add Variable to add another variable. Variables can be deleted using the delete icon.



6. Hover over the Variables section to Manage the variables if required. ThVariables pane will slide in from the right.



You can edit the variable names or add and delete variables as required. 



Note: You cannot modify the data type of existing variables.
7. Expand the Initialization section and click Add New Initialization.



8. Enter the required script to be executed before the execution of batch workflow starts.
You can also use the variables added in the previous script.
  1. input.total_amount = 0;
  2. input.minimum_amount = 0;


9. To edit the script, hover over the Deluge script preview and click the edit icon. You can click the delete icon to delete the added script.

Step 4: Configure After Batch Execution 

This section enables you to configure actions for both success and failure scenarios.

Note: The After Execution block is optional based on your requirements. However, you must configure the script to be executed in the During Execution block.



1. Expand the Success section and click Add New Success Script.



2. Enter the required script in the Deluge editor and click Save.



3. Similarly, add a script to be executed upon failure of batch workflow's execution by clicking Add New Failure Script.

4. Click Done at the top-right of the workflow builder. You can view the batch workflow you've created listed in the Batch Workflows tab.



4. Manage Batch Workflows

  1. You can enable/disable a batch workflow by toggling the button beside the workflow name as required.


  1. You can navigate to edit a section in the workflow builder by clicking the respective section listed in the Batch Processing Events pane.

5. Things to Know

  1. You can configure batch workflows in the following cases — 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 5 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 1050100200500, 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.

6. Limitations

  • This workflow is currently not supported for integrations forms.
  • Users can create up to five variables within a batch workflow.
  • Only one batch workflow can be executed concurrently (based on the creation date) for an account. This means that additional batch workflows will be queued for execution, thereby ensuring fair resource allocation and preventing overload on system resources.

Deluge limitations

Note: The above mentioned restrictions will also apply to function calls triggered from 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


                                    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

                                                                                                                                • 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 ...
                                                                                                                                • 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: Is only available for paid plans of Creator, ...
                                                                                                                                • 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 ...
                                                                                                                                • Creating and managing form workflows

                                                                                                                                  To create new form workflow: Click the Workflow button at the top to navigate to the workflow dashboard. Click the Create Workflow button. Select the On a form event option to specify when you need to trigger the workflow. Choose the required Form. ...
                                                                                                                                • Understanding form workflows

                                                                                                                                  In a nutshell Form workflows are automated actions triggered by user activities on a form, such as creating, editing, or deleting records, collectively referred to as record events. These workflows are further fine-tuned by form events, which specify ...
                                                                                                                                  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