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.
Notes
Before you proceed to create a batch workflow, check this page to understand about batch workflows.
Idea

2. Availability

Batch workflows feature
  1. Is available only 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 successful import of your records.
  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. Else, switch to step 6
Notes
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. Lets 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 less then 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.
Info
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.
Info
It is not recommended to edit or delete the script when the batch workflow execution is in progress,  since 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.

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



Notes
Note: You cannot modify the data type of existing variables.
7. Next, expand the Initialization section and click Add New Initialization.



8. Enter the required script to be executed before the execution of batch workflow starts.
Info
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.

Notes
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. You can execute batch workflows for batches in sizes of 1050100200500, and 1000 records.
  8. You can create up to 100 batch workflows at a time in your account.
  9. You can execute up to a certain number of batch block executions per account in a day based on your pricing plan. 
  10. The execution timeout for each batch is set to 1 minute i.e., if a batch block's size is configured as 1000, then the timeout for the execution of those 1000 records will be 1 minute.
  11. Similarly, the timeout for before and after execution batch blocks is 30 seconds each.

6. 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 (based on 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.
  4. You cannot trigger batch workflows for records imported by portal users in customer portal.
  5. Each batch workflow is limited to three integration tasks or webhook calls per record execution.
Deluge limitations
  1. The "old" keyword is not supported in batch workflows.
  2. You can configure upto 10 CRUD actions like addupdate, and delete for each records in a batch workflow.
  3. You cannot fetch more than 200 records.
  4. Info message cannot exceed 50KB. Otherwise, the message will be truncated.
  5. You can send up to a maximum of 3 email notifications with attachments.
  6. The maximum size of file attachments allowed is 15 MB. If the attachments exceed this limit, the emails will be delivered without them.
  7. 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 2 MB.
  8. getUrl() and postUrl() tasks are currently not supported.
  9. You cannot assign values to global variables. You can still access them using info statement.
  10. The following Deluge operations are not supported in batch workflows. 
    1. Fetching all values of a field
    2. Using aggregate functions (except count) on fetched records
    3. 'Call Function' task 
    4. Built-in functions such as:
      1. matches()
      2. ReplaceAll()
      3. ReplaceFirst()
      4. ReplaceAllIgnorecase()
      5. ReplaceFirstIgnoreCase()
      6. Compress()
    5. Client functions
  1. Understand workflows
  2. Understand batch workflows

    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 Links Workflow Automation Data Collection
                          Web Forms Enterprise Begin Data Collection
                          Interactive Forms Workplace Data Collection App
                          Offline Forms Customer Service Accessible Forms
                          Digital Forms Marketing Forms for Small Business
                          HTML Forms Education Forms for Enterprise
                          Contact Forms E-commerce Forms for any business
                          Lead Generation Forms Healthcare Forms for Startups
                          Wordpress Forms Customer onboarding Order Forms for Small Business
                          No Code Forms Construction RSVP tool for holidays
                          Free Forms Travel
                          Prefill Forms Non-Profit

                          Intake Forms Legal

                          Form Designer HR

                          Card Forms Food
                          Assign Forms Photography

                          Translate Forms Real Estate
                          Electronic Forms

                          Notification Emails for Forms Alternatives
                          Holiday Forms Google Forms alternative 
                          Form to PDF Jotform alternative





                                            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

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

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

                                                                                                              • 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 available only for paid plans of Creator, ...
                                                                                                              • Create and Manage Extensions

                                                                                                                Build and Distribute Extension Extensions are the software components or add-ons that let you extend the functionalities of Zoho Creator. Learn more about extensions. Note: Currently, you can only build widgets as extensions in your Creator. Step 1: ...
                                                                                                              • Limitations:​ Workflows

                                                                                                                Workflow execution A maximum of 120 workflow action calls (requests) can be executed per minute and per IP address. This count includes the execution of the following: Script in the on load form event Script in the on user input form event Script in ...
                                                                                                              • Understand Workflows

                                                                                                                A Workflow comprises of a set of actions executed at specific instances to automate routines in an application. When you trigger the workflow, it executes the set of associated actions. Workflows let you automate and map different activities, data, ...
                                                                                                              • Create and manage Java functions

                                                                                                                A function is a set of statements that is invoked in an application to perform a certain action or yield a desired result based on the logic in the code. Java is a widely used programming language. Introducing Java will equip you to implement the ...
                                                                                                                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