We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to use a cell value in DirectoryTool?

jpscoralick
8 - Asteroid

Hello everyone!

 

In the middle of my workflow I have a field with some file paths, as shown in the image below.

jpscoralick_0-1666901205812.png

Is it possible to use the 1, 2 and 3 lines, from FILE PATHS field, as the input of 3 different Directory Inputs, for example? 

I need to read some files that are located in those paths.

 

Thanks in advance!

6 REPLIES 6
Luke_C
17 - Castor
17 - Castor

Hi @jpscoralick 

 

Yes, you would pass these as the control parameter to a batch macro:

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Getting-Started-with-Batch-Macros/t...

Luke_C_0-1666901756263.png

 

jpscoralick
8 - Asteroid

@Luke_C , thanks a lot for the quick and useful answer!

jpscoralick
8 - Asteroid

I still can't understand how I can set a input to Directory Tool, once it does not accept any input.

Could someone help me, please?

Luke_C
17 - Castor
17 - Castor

Hi @jpscoralick 

 

Are you referring to inputting data following the directory tool or after the directory tool itself? Once you get the file names from the directory tool you could pass those into a dynamic input tool or batch macro (there should be examples of that in the link I shared earlier)

grazitti_sapna
17 - Castor

@jpscoralick , Here is the complete workflow with macro. You can use this but you just need to change the input and set the locations as per your files. Sending the zipped file as well as macro and workflow individually just in case not able to open the zip file due to version mismatch.

Sapna Gupta
jpscoralick
8 - Asteroid

@grazitti_sapna thank you so much for helping me!. Gonna do some tests here with your files. Really appreciate it.

 

@Luke_C I'm referring to inputting data following the directory tool. I'm need to input the values of FILE PATHS column below, which actually are some directories on which I have to search for some files. Thanks again!

 

jpscoralick_0-1666979835456.png

 

Labels
Top Solution Authors