I’m wondering if anyone has any suggestions on how to print all files within a subfolder? The scenario looks like this:
Receive an email containing a zip file called “Invoices.zip”
Using UiPath’s ‘Extract/Unzip Files’ activity, the robot unzips “Invoices.zip” and extracts the files to a folder:
C:\Users<user name>\Documents\Invoices
I click on Invoices folder and realise there’s a subfolder within called “All Docs”
C:\Users<user name>\Documents\Invoices\All Docs
I click on All Docs and I can see 5 PDF files which I need to print
The objective of the automation is as follows:
Check every new email received and download all attachments to a local folder
If it contains a zip file attachment, robot needs to print all documents contained in that zip file
Would really appreciate it anyone has any suggestions on how to best achieve this functionality! I’m getting stuck as the name of the zip file is dynamic and whether subfolders exist is also changing from email to email
Hi @GreenTea ! Thanks for your advice I gave it a go but it seems like my output of ‘Extracted contents folder’ is still picking up the main folder instead of the subfolder? I’m wondering if you have any idea what could be causing this issue? I have included screenshots below of my code and the output of ‘Extracted contents folder’ which is showing:
C:\Users\xxxx\Documents\Robots\AP_Print_Email_and_Attachments\Temp\Zip\RM - Voucher Req Forms
The folder where the files are stored in is actually:
C:\Users\xxxx\Documents\Robots\AP_Print_Email_and_Attachments\Temp\Zip\RM - Voucher Req Forms - Inv 126\RM - Voucher Req Forms - Inv 126