I thought I had found the perfect solution to have the date and time in the Excel output file name.
I am using in a formula function this code for a new column called Rundate
datetimeformat(DateTimeStart(),"%y_%m_%d__%Hh-%Mm-%Ss")
which gets turned into another column (FileName) including the file path:
"*:\***\ALTERYX\OUTPUTS\***\*"+ [RunDate]+".xlsx|||Sheet1"
Ultimately, the output tool is taking column FileName with "change entire file path".
I am also using two different output tools to write into the same Excel file; this is the only way known to me to write two spreadsheets into one Excel output file. The code used for the file name for both flows is the same except to the piece of the sheet name; for the other sheet name I only change the name to *:\***\ALTERYX\OUTPUTS\***\*"+ [RunDate]+".xlsx|||Data Summary"
However, recently I noticed Alteryx writes sporadically two output files with one spreadsheet each; the difference in the file name is the time stamp being off by one second.
This never happened before and it seems to happen only with certain Excel inputs in the workflow (which shouldn't have an impact).
I thought "DateTimeStart" would take the starttime when I hit the run button in Alteryx, no matter if I write different outputs in the same workflow. Or is "StartTime" referring to something else than hitting the run button Alteryx; i.e. when Alteryx started to read the corresponding input tool?