MarketplaceStudioTemplateReFramework for MailMessage Data

Create your first automation in just a few minutes.Try Studio Web

ReFramework for MailMessage Data

ReFramework for MailMessage Data

by Internal Labs

StarStar

5

Template

Downloads

1k

back button
back button
carouselImage0
next button
next button

Summary

Summary

The Robotic Enterprise Framework configured and optimized to get the input data from a list of emails. This is an adapted framework version of the Generic ReFramework.

Overview

Overview

This template can be used as a starting point for automating processes where the input data comes from an email account. The code here works with a normal email account, but it can work also with a shared email account if correctly configured.

Prerequisite:

The user should create in the email account a folder where the successfully processed emails are moved and configure the ProcessedEmailsMailFolder parameter in the Config.xlsx file.

Description:

This ReFramework can be used when processing a list of emails. The datatype of the TransactionItem is MailMessage and the datatype of the TransactionData is List. By default, this uses Exhange Server for retrieving the emails, but you can use also other providers and adapt the framework to it. 

The main issue that is adjusted is the fact that the list of emails is not marked as read in the Init step, but in the EndProcess step.

The other main adjustment by this is that if the robot crashes in the middle of the process then, if the robot is ran again it will still find the unread emails that were not processed yet.

Init: Inside the **'**GetInitialData.xaml' workflow the 'GetEmails.xaml' workflow is invoked. All the unread emails are added to a list, but they are not marked as read.

* Inside the GetEmails.xaml, 'GetAppCredentials.xaml' is invoked. This is used for the Exchange server authentication. If you are working with Integrated Outlook, you don't need that.

Process: Beside the code that any developer can add, the last step is to invoke 'MoveProcessedEmail.xaml' which moves the just processed transaction item into the folder for the processed emails (the one that was previously created and configured in the ProcessedEmailsMailFolder parameter in the Config.xlsx file) only if the transaction was successful.

End Process: Before the invoke of 'CloseAllApplications.xaml', the workflow 'MarkAsReadAllEmails.xaml' is invoked and all the emails existing in the folder created prior by the user for the processed emails to be moved and then they are marked as read.

This adjusted ReFramework can work both for a normal email account and also for shared email accounts, but for the shared email, the developer must add the required information in the Exchange activities used for reading the email, moving the mail and mark as read the messages.

Features

Features

Avoiding the scenario in which the robot crashes during a transaction that is random and the emails are already marked as read so when the robot is ran again it cannot find any new transaction. Same structure as the Robotic Enterprise Framework template included in UiPath Studio. Status file is created and linked with the input data. Added retry for Init sequence

Additional Information

Additional Information

Dependencies

ExchangeServer (by default)

Code Language

Visual Basic

Publisher

Internal Labs

Visit publisher's page

License & Privacy

License Agreement

Privacy Terms

Technical

Version

1.0.2

Updated

August 10, 2021

Works with

Studio: 21.10 - 22.10

Certification

Silver Certified

Support

UiPath Community Support

Resources