The Alteryx Community is a finalist in three 2026 CMX Awards! Help us win Customer Support Community, Most Engaged Community, and User Group Program of the Year - vote now! (it only takes about 2 minutes) before January 9.
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.
SOLVED

Directory to Dynamic Input, Losing the filename downstream

trixiebelden
5 - Atom

I am reading a series of .txt files from a directory.  There are two separate file layouts which need to be applied, so I filter first to segregate.  Then, using the dynamic input, I use one of the files as the template for the data to read in all the matching data files.  I want to have the original filename as part of the output file downstream.  When I use the Dynamic Input, I'm losing that field.  Is there a way to capture the name and have it on each row of data from the source file?

2 REPLIES 2
Garrett
11 - Bolide

When editing the "Input Data Source Template" in the Dynamic Input tool configuration, use the "Output File Name as Field" setting under "Options":

 

DI.PNG

 

 

trixiebelden
5 - Atom

Solved!  Thanks so much

Labels
Top Solution Authors