Logic | Zoho RPA Help

Logic

The Logic section contains elements to build the logic part of your workflow.  It's like the control center of your automation, directing the flow of actions based on specific conditions.
The logic section has three main parts:
  1. Flow Control is like a traffic light for your workflow, ensuring that actions are executed in the right order and under the right conditions. It lets you create variables, branching paths, and also set delays that make your automation more flexible and adaptable.

  2. Notifications are like the alarm clocks for your workflow, , keeping everyone updated on important events and progress. You can use them to send alerts, error messages, or status updates to stakeholders, ensuring that everyone is on the same page.

  3. Custom Functions are like the building blocks of your workflow, letting you create reusable chunks of code that can be used throughout your automations. This saves time, reduces code duplication, and makes your workflows easier to maintain and understand.

Flow Control

Set Variable

Set variable allows you to create a variable and assign it a value.  The value can be a constant, the result of a formula or data from triggers or actions.
  1. Use constant values
    Assign a fixed value to a variable.
    Example: cost=30

  2. Using Formulas
    Perform calculations before assigning the value.
    Example: total= ${trigger.total+10}

  3. Trigger or Action Output Variables
    Use output variables from triggers or actions to create variables.
    Example: userame=${trigger.first_name+trigger.last_name}

  4. Other Set Variables
    Refer to values from other variables to create new variables.
    Example: total=${cost+trigger.total}
To configure Set Variable :
  1. Click on the Logic tab on the left side of the builder. 
  2. Drag and drop Set Variable from Flow Control.

  3. In the configuration window that opens, the variable name will be auto filled. You can edit the name if needed.
  4. Enter a value that will be stored in the variable. Example:  ${trigger.total+10}
  5. Click Done. You will now be able to map this value in the actions that follow.
Note:
    1. All variable names must start with a letter.
    2. Variable names can contain alphanumeric characters and underscores.
    3. Other characters, such as spaces, are not accepted. Names must be unique to avoid naming clashes.
    4. If you use the assign values to a variable in multiple actions,then the result of the action executed last will be stored in the variable.
Decisions
Decisions act as control points within your workflow, evaluating conditions and directing the flow accordingly. You can define rules to check for specific criteria and specify actions to be executed when those conditions are met, enabling you to create more sophisticated and adaptable workflows that respond effectively to diverse scenarios.

For example, the workflow can take different actions based on the subject of an email. If the email has the subject "Order Received," it will extract invoice details and purchase numbers from the email content. It will then mark the corresponding order as received in the web application and send a success notification email. Similarly, when the subject is "Create Purchase Order," the workflow initiates a process to generate a new purchase order in the web application. In the case of the subject "Order Confirmed," it triggers a sequence to update the order status to "confirmed" in the web application.

Conditions
Each test case that you define is called a condition. You can create multiple test conditions, each of which can be a combination of one or more rules linked using logical AND or OR operators.

Groups
A group is a collection of rules. You can add as many groups as required. The final value is evaluated from the output of each group, rather than from the output of a single rule.

Operator Precedence
Logical AND operators are given higher precedence than OR operators. For instance, consider the following condition where T is true and F is false:
T||F&(T&T)
In this case, the evaluation is performed as follows:
  1. (T&T) - Evaluates to true
  2. T||(F&T) - The result of F&T is false
  3. T||F - Evaluates to true
Therefore, the overall output of the condition is true.

To configure Decision: 
  1. Click the Logic tab on the left side of the builder.
  2. Drag and drop Decision from Flow Control.
  3. In the configuration window, define your conditions. All output variables from previous tasks will be available in the dropdown. Choose a variable, select the operator, and specify the value for comparison.
  4. You can add multiple conditions and use Logical AND or OR to link them. Include different test conditions within a group or create additional groups as needed. Adding a group or test condition will display a dropdown with AND/OR options:
    "AND" indicates the output is true only if both test conditions are true.
    "OR" indicates the output is true if one or both test conditions are true.
  5. Click Add Group below your test condition to create a new group.

  6. Add as many conditions as you need by clicking the + below your conditions in the flow builder. You can also add an action to execute when none of the conditions hold true at the bottom of the decision box. This is called the default action. 


    Here, an email notification is triggered when both the conditions are false. 
Note: 
  1. The dropdown will list all output variables available from the action outputs. For fields that require manual extraction, such as from Read data from Excel action, you'll need to create a new variable and assign the desired value to it. This new variable can then be used in the condition.
  2. Output variables received from a webhook trigger should also be assigned to new variables using the Set Variable action before they can be used in conditions

Delay

The Delay action provides a convenient way to pause the execution of a workflow for a specified period before resuming the flow. This feature is particularly useful in situations where you need to introduce a time gap between actions or wait for an external event to occur before proceeding.

For instance, consider a lead nurturing workflow that sends an initial welcome email to a new subscriber and then follows up with additional emails at intervals of two days or five weeks to provide valuable resources, schedule a webinar, or gather feedback on their product experience.

You can also use delays to pause workflow executions to introduce pauses between actions for data processing or system updates, align actions with business hours or customer schedules, and await external events such as API responses or user interactions.

Note: You can use natural language to input dates and time periods into the Delay for option. For example, Flow will accept entries like "3 days", "a month," or "four weeks." Your current time will be used as the starting time for the duration. If you create a three-day delay action at 2PM, it will be executed at 2PM three days from the date you created it.

To configure Delay:

  1. Click the Logic tab on the left side of the builder.
  2. Drag and drop Delay from Flow Control. There are two types of Delay: Delay For and Delay Until.
  3. Delay For will be auto-selected. You can choose to delay for any number of minutes, hours, days, or weeks.
  4. You can choose to Delay until a particular date you select from the calendar. Click on the month or year to view your options for changing them.
  5. Click Done.

Notification

Send Email

Send Email allows you to send an email to any email domain through workflows. The sender address won't be yours, but the Reply to will be set to your email address (any domain). For example, you can configure an email to be sent from your official email address (your company's custom domain) to all candidates who applied for an opening. Although the email will be sent from our auto-generated email address, the Reply to will be set to the sender email address you provide.

To configure Send Email:
  1. Click the Logic tab on the left side of the builder.
  2. Click Notifications.
  3. Drag and drop Send Email to the builder. A configuration window will open where you need to fill in the following details

    From
    Sender email address (Reply to will be set to this email)
    ToClick Done.
    Recipient email address
    Subject
    Subject of the email
    Message
    Body of the email

  4. For more options, click Advanced options below the message field.

    Cc
     Carbon copy. Email addresses you want to forward a copy   of this email to.
    BCC
    Blind carbon copy. Email addresses you want to forward a copy of the email to but do not want the other recipients to know.

  5. Click Done.
How do I verify my email address?
The Send Email action allows you to send emails through workflows with the From address of your choice (for example, sales@yourdomain.com). As the emails are sent from Zoho RPA's mail servers, you are required to verify the validity of the From addresses you provided. Once you complete the verification, the emails will be sent with the verified email address as From and Reply to address.

To verify the email address, follow these steps:
  1. Click Add new email address adjacent to the From address field.
  2. Provide the email address that you want to use as the From address in the Email ID field and click Verify.
  3. A One Time Password (OTP) will be sent to the email address provided. Enter it in the Verification Code field and click Verify to complete the verification.
Note: If you do not complete verification, noreply@zohorpa.com will be used as the default From address. 

Custom Functions

Create your own function from scratch in Zoho RPA using Deluge script. Learn more



        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

                                                                                                                                    • RPA flow

                                                                                                                                      What is an RPA flow? RPA flows are like processes or workflows that you can create to automate tasks. An RPA flow is made of a trigger and one or more actions. The trigger initiates the flow, and the actions are the tasks that are executed by the ...
                                                                                                                                    • How to loop through elements in Web pages

                                                                                                                                      This guide will help you understand how we can loop through elements in webpages. Web data is incredibly diverse, and while tables are a common format, much of the information we need to interact with or extract isn't always tabular. Mostly, data ...
                                                                                                                                    • Webhook Trigger

                                                                                                                                      What is a Webhook trigger? A webhook trigger is a type of trigger that allows you to start a flow when an application sends data updates via a URL endpoint. This is useful for automating tasks that need to be performed in response to events in other ...
                                                                                                                                    • Understand your Zoho RPA Account

                                                                                                                                      Key Terminologies Flow A workflow you can create to automate tasks using RPA actions, cloud app integration, and processing actions, such as logic, delay, and send mail. A flow contains a trigger and one or more actions. For example, when a new ...
                                                                                                                                    • Settings Overview

                                                                                                                                      The Settings section lets you view and manage information about your organization, RPA Flow execution history, cloud app connections, and agents and members on Zoho RPA. To access Settings, click the gear icon on the left sidebar. The Settings ...
                                                                                                                                      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