Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

How to Input Directory into Batch Macro

HenpetsGordres1
8 - Asteroid

Potentially a very easy to answer question, how do I configure the input of my macro to read files from a directory? Currently my directory has 2 files:

 

StephenRodgers_0-1579188164860.png

 

In the below image, in red section, I previously had one of the files set as the 'File Input' and the macro worked as expected. But I don't know how to set it up so it will read one file at a time from my directory.

 

StephenRodgers_1-1579188278171.png

 

When I try and use a directory with the Macro, none of the variables are recognised.

 

Many thanks

 

 

 

1 REPLY 1
afv2688
16 - Nebula
16 - Nebula

Hello @HenpetsGordres1 ,

 

To do that you would need to change the procedure and add a control parameter to an input. You would modify the filename with each file and therefore process every file one after the other.

 

Untitled.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Regards

Labels
Top Solution Authors