RPA Trigger Follow
A RPA may be tiggered by one of two ways: An Email Trigger or Scheduled Trigger. (or manually of course)
To add a trigger, first create your RPA, then go to Automation (RPA) -> Triggers.
Email Trigger
The RPA will be triggered every time an email is received that matches the pre-configured filters (From, Subject, Body Template and Has Attachment).
The email must be received in the email account(s) configured in Admin > Mail (email configuration).
To add an email trigger, go to Automation (RPA) -> Triggers -> click on -> Email Triggered.
After selecting the RPA this trigger should run, the trigger editor page will open.
Email Trigger filters
Fill in the filter for this trigger: only emails matching the provided criteria will be handled by your RPA.
In this example, the RPA will be triggered only if it's:
- From auraplayer.com
- Its subject is "Add order ${CUSTOMER_PO} for ${ORDER_DATE}".
The ${CUSTOMER_PO} and ${ORDER_DATE} are variable-tokens which can be referenced later in the input parameters section. - Has attachment(s)
Therefore, an email from someone@auraplayer.com, having subject Add order demorpa123 for 26-jul-2021 and an attachment will trigger your RPA.
Input mapping: dynamic tokens
The Input section displays the inputs of your RPA: here you may assign static values, or dynamic tokens from your email - into the inputs of the RPA.
In the example bellow, we used the ${CUSTOMER_PO} and ${ORDER_DATE} values from the subject line:
Input mapping: ${from}, ${to}, ${listener}, and more
You may also reference the ${from}, ${to}, ${listener}, ${subject}, ${body} of the email:
Input mapping: attachments
When an email includes attachments, they will be automatically downloaded.
The attachments' paths on the server, and the original file names from the email will be avaialable via:
- ${attachments[0].name}
- ${attachments[0].path}
- ${attachments.length}
You may access a specific attachment (above: the attachment in index 0), or pass all attachments by using * as index (the values will be separated by 3 commas). For example:
Result: RPA's inputs will be -
names = file1.csv,,,file2.png,,,file3.xls
paths = path1,,,path2,,,path3
length = 3When executing your RPA via an EmailTrigger, these values will be logged in Admin -> Log Viewer.
When an attachment is a zip file, it will be automatically unzipped, and the unzipped files will be handled just like any other attachment.
For example, assuming that an email was received with the following 2 attachments:
archive.zip - a zip of [input.csv, pic.png]
orders.csv
Then the EmailTrigger will see 3 attachments:
${attachments[*].name} = input.csv,,,pic.png,,,orders.csv
${attachments[*].path} = ...
${attachments.length} = 3
Scheduled Trigger
You can schedule a RPA to be triggered in a later time, once or in certain days, intervals, etc.
To add a Scheduled Trigger, go to Automation (RPA) -> Triggers -> click on -> Scheduled.
After selecting a RPA to run, the scheduler configuration screen will open:
In the example above, the RPA will be executed starting on 26/07/2021 10:00, every hour from Monday to Friday.
For more information, please watch our demo video.
Comments
0 comments
Please sign in to leave a comment.