Reading the invoice
In this section, you will read the invoices that have been downloaded from the mail. The following diagram explains the high-level process of reading the invoices:
Here, you will be extracting the customer details and invoice particulars from the read invoices. Let's begin designing this process:
- Let's start by creating a new sequence with the name
Read_Invoice
. - Then, in the Variables panel, create a variable with the name
currentDirectoryPath
, choose the type asString
, and typeDirectory.GetCurrentDirectory()
in the Default section. - Also, create two more variables, the first named
invoices
of theString[]
type (an array ofString
) and the second namedinvoicePath
of theString
type. - In the
Read_Invoice
sequence, drag and drop the firstAssign
activity. Pass theinvoices
variable in the To section andDirectory.GetFiles(currentDirectoryPath+"\Invoice"...