Creation of Multiple files with Date

I Want to Multiple create files with Date.
Like in the format of "Report_Date(Currentdate - SomeotherDate) automatically



You could assing the name as follows

"Report_" + now.ToString("MMddyyyyhhmmssff")

But I would suggest you change the order of the date, so that you can use the sorting in windows. Hence, this will be the recommended.

"Report_" + now.ToString("yyyyMMddhhmmssff")

But i want to create multiple files, at the same time with different in continous manner of dates.
like “Report_(02122021 to 07122021)”.
i dont want to take 5 create files activites and create 5 files

is there any way of creating 5 or more files with different dates

Ok, I think I got it.

What you want to do is use a time stamp that is unique every time it creates a file.

For that you want to include the hour minutes seconds and fractions of a second in order to create a unique name. The code would look something like the following:

"Report_" + now.ToString("yyyyMMddhhmmssff")

Ok But i want to create 3 pdf files at a stretch. i dont want to use 3 files activities.
is there any way?

Hi @Bhagyaraj_Digumarthi

I have created file using while loop adjust the condition for until how many files you need!

Refer to the xaml below !

Main.xaml (6.4 KB)


1 Like

Wow, Thankyou
Thankyou so much.

1 Like

Hi @Bhagyaraj_Digumarthi

Glad I resolved your query!

Mark Solution to the post so that it may be helpful to others who searches Similar!

Happy Automation!


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.