I have an excel which contains invoice numbers and types “Credit Invoices” and “Sales Invoices”.
I have a folder that contains all the invoices but I need to sort them into the correct folders.
I need a robot to
Read the excel file,
Look into the folder, find the invoice then move it to a specific folders ie “Credit Invoices”
Can someone please help me understand how to read the excel, store that info, then tell the robot to move the files.
Hey no the files are not in PDF all invoices are Excel files.
We have the file name in the Excel summary which shows the invoice type ie Credit or Sales invoice.
So we know the file names in excel we then need the robot to store the info and then move the invoice into a specific folder.
If the invoice type is part of the name, then check if file name contains keyword(if filname.Indexof(“keyword”)), then move file to path. Use move file activity.
We need an invoice name therefore I’m using String manipulation
invoice name = Dell_Service_A56778_67809
Use Assign activity
//get invoice system path InvoiceList = Directory.GetFiles(Path)
Path=Enter folder path where all the invoices are present
O/p= c://documents/invoiceList/Dell_Service_A56778_67809.csv
//system path will replace with “” . So we’ll get
Dell_Service_A56778_67809.csv FileName=item.ToString.Replace(Path,“”)
//Excel sheet has Dell_Service_A56778_67809 data so we need to remove an invoice extension