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.
RESUELTAS

saving a file with the current date

cstafford
Asteroide

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 RESPUESTAS 7
jasperlch
Cuásar

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
Asteroide

thank you, worked great.

sk1909
Asteroide

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

cstafford
Asteroide

I would try the DateTimeTrim formula and concatenate as needed

 

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

NJT
Bólido

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
Asteroide

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

Soraju
Meteoro

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

Etiquetas
Autores con mayor cantidad de soluciones