How to include a timestamp in the output filename?
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello,
Does someone know how to put a datetime in the output filename please?
To not have the same output filename, i need to include the date
for example output_20170602.pdf
thank you for your advice
Stephane
Solved! Go to Solution.
- Labels:
- Common Use Cases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You can do it by:
Create a variable (Run Date) using:
DateTimeStart()
Then using that as part of the output configuration:
Here's a workflow pic:
And your output looks like:
Cheers,
Mark
Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Mark,
Many thanks for this advice, that works perfectly with the formula. However i didn't say that the output was generated by the render. the file is a pdf and send it by email then.
So 2 problem:
- there are no option in render to change the filename
- how to get the last filename in attachment of my email?
Thank you for your support
STephane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hey @stefanem
You can change the filename in the render - screenshot below - what you have to do is to use the "Group data into separate reports" option. the attached workflow does actually create files with date stamps.
If you want to generate these rendered files and attach them to e-mail - then use a Block until Done to split this generation of the render file and once generated you can then attach to an e-mail (but you will need to recreate the filename in a formula)
Hopefully this gets you where you need to be
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Thank you for your replies, that works fine.
Stephane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Mark,
Datetimestart() is a great function. Thanks for introducing this to us.
I have a question on this function.
I am now trying to add timestamp to the output file name. The case is I need to output several excel like 15 in one workflow, I expect there is time gap delay between the 1st excel output generation and the last output generation. I would like to check if the timestamp is the workflow start time or the time when the output process is triggered.
If it is the workflow start time, then there is no issue because the timestamp will always be the same in all output file name.
However, if the timestamp is whenever the output icon is being triggered, then I may have several excel names with different timestamp. This is what I don't want.
Thanks,
Eliot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi, I tried doing this with a .xlsx file and the output doesn't take the time stamp. I tried with .csv and it works.
I want to know if my alteryx is not working properly or it just works with csv files?
