Need a sequence fir the BELOW Problem

You Can build a sequence to take set of pdf’s and save in pdf’s

like

  • Input Folder–> File1, File2 and Output folder–>Empty initially

  • Move Files from Input folder to Output folder

*Zip output folder

*Send zipped output folder in an email using UiPath

Hi @Mini_01 ,
You can try step


regards,
LNV

@Mini_01

Here is the reference xaml for your query
Sequence.xaml (9.7 KB)

Hope it helps!!

Hi @Mini_01

=> Use create folder activity to create a new folder which name it as a Output Folder.
=> After Create folder activity place the For each file in folder activity to iterate the files in the Input folder. In the Filter of this activity to get only pdf’s. “*.pdf”
=> Inside for each Insert the Move File activity to move the
→ From Field - Give the CurrentFile.toString
→ To Field - Give the Path of Output Folder that we created at first.
=> Outside of for each Insert the Compress\Zip Files activity to zip the Output folder. In the options of Compress\Zip activity select the Folder option. In the Content to Zip field give the Output folder path.
=> After this use the send outlook mail message activity to send the mails.
→ Open the Attach Files option create an argument and Give the path of the Compressed Output Folder Path.

Check the below for better understanding.

Hope it helps!!

I can’t see the for each file in folder activity in my Ui path…is there any extension which i have to install?

@Mini_01

Please check whether you have below dependencies or not?
image

By downloading the UiPath.System.Activities, you can find that activity

Hope it helps!!


getting this error

Hi @Mini_01

In To section I think you are using CurrentFile.Tostring it prints whole path if you are trying to get the file name give like this CurrentFile.FullName
Try this
"C:\Users\lrtetala\Documents\UiPath\ExcelCompare"+CurrentFile.FullName+…

You have given CurrentFile.toString right, this has contains the Whole path of the file.
I think in To field you have concatenated the Path with CurrentFile.toString.
It will be like to paths.
If you want the name in the CurrentFile then use this CurrentFile.Name.toString in the Place of CurrentFile.toString in To field.

image

Hope you understand!!

@Mini_01

if Zip Automation is a folder then please add \ after zip automation as below

Zip Automation\"+CurrentFile.Name+".pdf"

Hope it helps!!

@Mini_01

Currentfile is of type fileinfo and if you gice currentfie.ToString it will give string as fileinfo but not the location…

You need to give currentfile.FullName which gives the fullpath of the current file

Hope this helps

Cheers