How to compare previous and current date from the same excel file name?

Hi guys! If I have a scenario that need to compared previous and current date for the same excel file name how to achieve that?

Thanks!

Could you please provide some more details?

@KannanSuresh hi sir, thanks for the reply! Let say today i run UiPath studio to download the attachment which has the .xlsx file type and tomorrow i run again the same thing and does UiPath let us compared the previous and current date of the excel file?

Thanks!

@phoenix123
Correct me if i am wrong. You question is you are saving email attachments to a folder(constant folder) and you run the same email twice or two different emails with same attachment (same file name) will uipath compare the files and download?

The save attachment activity will not compare the files. It just downloads the file. If the file already exists, it overrides it.

@Madhavi yup something near to what I am doing right now looks like save attachment files only can download the files but cannot compare, I see… Thanks for your reply!

1 Like

If you need to differentiate the files downloaded every day or for every email, every time when you download a file, create a folder with unique name (Using timestamp is best here) and then download the files into that folder instead of downloading all the files into one. In this way, your files will never get overridden.

And if you still need to compare the files, you can now write a logic to compare files in each of these folder.

1 Like

@Madhavi hi thanks for the suggestion! :slight_smile:

1 Like