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

macro that reads all the files in a directory

GOL
6 - Meteoroid

Hello, I have a macro that reads all the sheets in the fileonea (Table of Query: List of Sheet Names).

 

GOL_2-1681316505115.png

The action tool Update the Value as follow: 

GOL_4-1681317103916.png

 

 

But I also need that the macro reads all the files (fileonea, filetwoa, filefoura) in the directory :

 

 

GOL_1-1681316122951.png

 

 

So, I have created a workflow that starts with directory tool and receives the macro :

 

GOL_3-1681316928533.png

 

For some reason, the workflow doesnt work and I have to upload manually all the files one by one in the macro detailed before. I have tried some different options but with no result. 

Would you mind explaining me how read automatically all the files in a directory?. 

I think that it could be that the macro receives the list of sheet names but the directory has the path or the filename but not the list of sheet names...i guess

Your help is much appreciated. 

Regards, 

 

2 REPLIES 2
BS_THE_ANALYST
15 - Aurora
15 - Aurora

@GOL You can use this workflow: 

BS_THE_ANALYST_0-1681321586682.png

Just remember to select FullPath on the macros inside the Questions Tab. I just leave all the Group By as none:

BS_THE_ANALYST_1-1681321623900.png


Let me know how it goes.

All the best,
BS

 

All the best,
BS

LinkedIN

Bulien
shekhar198569
5 - Atom

Hi, it gives this error while running workflow

 

 

Labels
Top Solution Authors