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

  • This workflow is currently not supported for integrations forms.
  • Users can create up to 5 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.
  • You cannot trigger batch workflows for records imported by portal users in the customer portal.
 

Deluge limitations

Notes
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 Links Workflow Automation Data Collection
                              Web Forms Enterprise Begin Data Collection
                              Interactive Forms Workplace Data Collection App
                              CRM 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
                              Mobile App
                              Form Designer HR
                              Mobile Forms
                              Card Forms Food Offline Forms
                              Assign Forms Photography
                              Mobile Forms Features
                              Translate Forms Real Estate Kiosk in Mobile Forms
                              Electronic Forms Banking 
                              Notification Emails for Forms Alternatives Security & Compliance
                              Holiday Forms Google Forms alternative  GDPR
                              Form to PDF Jotform alternative HIPAA Forms
                              Email Forms
                              Encrypted Forms
                              Embeddable Forms
                              Secure Forms
                              Drag & drop form builder
                              WCAG

                                      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

                                                                                                                        • 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, ...
                                                                                                                        • Understanding report workflows

                                                                                                                          Report workflows are associated with action items in Zoho Creator reports. Action item could be defined as an alternative to the existing system actions, which include edit, delete, duplicate, and view record. Zoho Creator enables you to interact ...
                                                                                                                        • Understanding form event in workflows

                                                                                                                          To set a workflow to start rolling out, you need to specify on cue of which record event it needs to be triggered. Options are when a record is created, when a record is edited, when a record is created or edited, or when a record in deleted. Then ...
                                                                                                                        • 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 ...
                                                                                                                          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