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.
Thanks in advance.
@Savvas_Peter Is there any specific name for the invoice pdf?
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.
Hey please see Attachment with screenshotsMoving Files using Excel.docx (229.3 KB)
@Savvas_Peter Could you please provide a sample for invoice?
Sorry for the delay , Do you get the solution?
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.
No solution yet… DId you have nay more guidance for me?
you can read an Excel using the Read Range activity
and move a file using the Copy activity
@Savvas_Peter Yes, I got it
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
//system path will replace with “” . So we’ll get
//Excel sheet has Dell_Service_A56778_67809 data so we need to remove an invoice extension
Use Excel application scope and read range activity to read the excel sheet data
Use if condition activity to compare invoice name and the row data which has invoice name in the sheet
if the row data and invoice file name matches then move the file in a particular folder for that use Move file activity.
Note: Instead of String manipulation you can use two lines of .net code
Hope this will help you to complete this task
Hey do you have time for a teams meeting or skype?
I am having a few issues.
@Savvas_Peter Yes,why not but before that could you tell me where you got stuck ?
@Savvas_Peter If you require workflow for this let me know I’ll share with you.
A workflow would be greatly appreciated!
@Savvas_Peter Here it is
InvoiceSorting.xaml (14.2 KB)
Excel Sheet Invoice name:
Hope this will help you
Thanks but I cant open the file.
@Savvas_Peter This happening due to dependency.
Try to reopen it.
Hey I tried to reopen but it wont work, could you send me screenshots so I could see how you entered it?