Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Auto Writing Monthly Cuts Date in Table Name

averyntxu
5 - Atom

I'm writing to Oracle and using only In-DB tools. We are merging many fields from different tables together and throwing it on the Alteryx Server to be scheduled ran monthly. 

My question is there a way to automatically include the month and year that the run is processed on at the end of the Table Name in the Write Data In-DB tool?

1 REPLY 1
JessieC
Alteryx
Alteryx

Hi @averyntxu ,

 

You can wrap the In-DB tools workflow into a macro and then have the date be the parameter getting updated with an Action tool. 

 

Inside the Macro - 

MacroCapture.JPG

 

Workflow - the formula tool: DateTimeNow() -> DateTimeFormat([Date], "%Y-%m")

 

Capture.JPG

*I used DateTimeAdd to mimic different months that the workflow would be scheduled.

 

See attached packaged workflow.yxzp

 

Hope this helps!

Labels