Alteryx designer Discussions

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

Passing information through a Dynamic Input tool?

Highlighted
Meteor

Hi all--

 

I have a bunch of sales files with different information in the filename... let's use store number as an example. I can parse the filename to get said store numbers, but I want to be able append the store number to the sales data. When I use a Dynamic Input after using a Directory tool, the filenames don't pass through. I then have no way of identifying which line of data came from which file, so I can't add store number to the individual lines of data.

 

Does anyone know if there's a way to pass the filename or other downstream information through a Dynamic Input tool?

 

Thanks!

-Zach

Highlighted
Meteor

Hi zachwalz,

 

Take a look at the great solution that @CameronS came up with. From the outputed data you can then pull out the information from the filename that you're wanting.

Highlighted
ACE Emeritus
ACE Emeritus

Hey Zack, there is a setting in the dynamic input to output the file name or file path, i gave it a shot and gives me what i need. Have you tried that?

Jack

Tool Screenshot.png

Alteryx Certified Partner
Alteryx Certified Partner
Hi Zach

There is an option when you set up the "template" for the dynamic input
(and for a normal input for that matter) which says "Use Filename as
Field". This option will put your filename onto your data amf you can then
parse out your store nimber from there.

Good luck
Chris
Highlighted
Meteor

Ah I was missing it in the template portion. I was looking the actual tool configuration. Thanks so much!

Highlighted
Alteryx Certified Partner

Hi everyone,

What if I have a text tool (Or any other) before the dynamic input, with more than the sheet name field, and I want it after de dynamic input, to be a part of the data?


@jack_morgan wrote:

Hey Zack, there is a setting in the dynamic input to output the file name or file path, i gave it a shot and gives me what i need. Have you tried that?

Jack

Tool Screenshot.png


 

Labels