Start Free Trial

Alteryx Designer Desktop Discussions

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

Adding Macro to pick new file

kauser
8 - Asteroid

Hello, 

 i am working in a workflow where business need to add new file (e.g. loan or funding) depends on the client. how can i build a Macro to pick those new upcoming file so Alteryx can pick those new files without modify and/or update existing workflow. 

 

Thank you 

 

kauser 

2 REPLIES 2
EKasminsky
9 - Comet

I mean what comes to mind is doing using a directory tool, then sort by create date/last updated date, then select records tool (set as 1) to get the most recent file. 

From there, I would use a formula tool to pull the full file path, and the "Batch import multiple files" macro I found in the Gallery.

 

Basically, it sounds like you want to pull the most recent file to determine what to do with it, and that's how I would do it.

kauser
8 - Asteroid

@EKasminsky 

thanks for your reply. actually i need to rephrase my question. i would like to know how to build a macro to pick new data from existing input file. such as my current input file is like below 

 

current month input file

item typecolor amount 
A2Yellow20
C4green45
D5orange345
B1black758

 

future input file when there are new item added into table (item R and Y added into this table)

 

item typecolor amount 
A2Yellow20
C4green45
D5orange345
B1black758
R3Blue5859
Y9white25
Labels
Top Solution Authors