I have a process to check a folder, which identifies when a file is received and can read from it. So far so good, but I have a couple of problems.
The files in particular are email converted into text. This emails contains information for the robot to start a process with some of the attributes in the email.
The problems I’m facing are the following
1- The files have a reference ID based on the date & time that has been created like YYMMDDHHMMSS. This allows to order the files. But how can Uipath order the files so that it pickups up the older? Basically I want to create a first in first out sequence, so that the older request is being processed.
2- I need to read some data from the file to do a few tasks. The contents of the file is something like this: From: user@server.com
Sent: 25 March 2017 12:37
To: Rob1
Subject: Rob1 Task: Process1 Attrib1: FEB17 Attrib1: 200012
The information I need to capture is
The email, so that I can inform the user that the task is being processed. (I don’t see an activity in Uipath, is it possible to send emails?)
The Task to start the required process
The attributes that are required in the task
How can I capture the information from the text file and store in in attributes to process it?
I’m attaching the example text file and the xaml file as a reference.
I would really appreciate to get some help or advice
I’m a bit stuck on the text handling. I’m getting an error message on the assignation, where the File.ReadAllLines is assigned to the array string_data
It seems like it is not recognizing the ReadAllLines. Once I enter File., the list of possible options does not include .ReadAllLines