EmailTrigger

Estimated reading: 3 minutes 1630 views

This activity helps the users to trigger a workflow when an email is received, based on the specified conditions. When an email that meets the specified criteria—such as sender, subject, keywords, or attachments—is received, this activity automatically triggers a designated workflow.

Properties

INPUT

EmailAccount:* This parameter provides the Outlook account that has been integrated into the user’s system. Choose the option from the drop-down to select the required account. This field accepts the value in “String” format. You can either hardcode the values in “String” datatype or can enter the values in “String”.

WatchEmailsFromFolder: It specifies the “Folder” where the mails are required to watch and trigger the workflow. This parameter accepts values in “String” datatype. You can either hardcode the values in “String” datatype or can enter the values in “String”.

MISC

DisplayName: Displays the name of the activity. The activity name can be customized, which aids in troubleshooting.

SkipOnError: Specify the “Boolean” value as “True” or “False.”
True: Continue executing the workflow regardless of any errors thrown.
False:
 Halt the workflow if it encounters any errors.
None:
 If the option is left blank, the activity will, by default, behave as if “False” were chosen.

Version: It indicates the version of the feature being used.

OPTIONAL

From: It indicates the filters that are required to watch and trigger the workflow.

Select Filters: Use this option to configure an advanced filter to specify any conditions for the emails to be read. Click on this to open the “Advanced Filter” wizard.

1. And / OR condition: The “AND” function returns results that meet all specified conditions, while the “OR” function returns results that meet any of the specified conditions.
    b. The first dropdown lists the email fields to filter by: Bcc, Body, Cc, Date, From, To, Subject, or Categories.
    c. The second dropdown lists the operators to evaluate the chosen fields. The available operators are:
        i. For the fields “Bcc, Body, Cc, From, To, Subject, and Categories,” the operators are contains, does not contain, ends with, starts with, equals, is empty, or is not empty.
       ii. For the “Date” field, the operators are older than, newer than, or equals, indicating the time period of the emails.
   d. To include additional conditions, click the “Add” button.

OUTPUT

Result: It provides the ability to view the execution status of the activity. It returns values in “Boolean.”
True: Indicates that the activity has been executed successfully without any errors.
False: Indicates that the activity has been unsuccessful due to an unexpected error being thrown.

* Represents mandatory fields to execute the workflow.

Tips

1. Trigger Activation: If there are already emails in the specified folder at the time the workflow starts, the email trigger will not activate. This means it won’t respond to those existing emails.2
2. Post-Execution Triggering: After the workflow has been executed, if a new email arrives in the specified folder, that will trigger the flowchart to start.
3. Continuous Monitoring: The trigger will continue to monitor the folder in a loop, looking for the next incoming email. However, this continuous checking will stop if a “stop” condition is defined and executed within the workflow.

Share this Doc

EmailTrigger

Or copy link

CONTENTS