ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
RÉSOLU

saving a file with the current date

cstafford
Astéroïde

I create a .csv file at the end of a workflow with a static filename. However, since this workflow will be run daily, I want to add the current date to the end of the static filename. How can I add this feature to the workflow?

7 RÉPONSES 7
jasperlch
Quasar

Hi @cstafford

 

This can be done by adding a "Today" field using Formula tool to your dataset before the Output tool and check the box of "Take File/Table Name From Field" box in the Output tool:

Capture1.PNG

cstafford
Astéroïde

thank you, worked great.

sk1909
Astéroïde

Is there a way to format the date in this without the dashes? I need the date to be YYYYMMDD.

cstafford
Astéroïde

I would try the DateTimeTrim formula and concatenate as needed

 

DateTimeTrim(DateTimeToday(),"month"&&"day")

NJT
Bolide

Now how do you do it with Excel files... and format the date @sk1909 was asking about. I'm working on a solution I can't seem to find it solved in the community in the same thread. I think I'll start a new thread that is called using current date in output file names for Excel and other formats and combine it all in one thread. I would think this would be out there already since I can't imagine people not needing this. 

cstafford
Astéroïde

to my knowledge and experience, it only works for .csv files.

Soraju
Météore

Did you find a solution to appending date on an excel file output?

Étiquettes
Auteurs des meilleures solutions