Alteryx Designer Desktop Discussions

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

Dynamically retrieve table names

jjinsig
5 - Atom

Hello, 

 

I have a list of files: 

 

File NamePath
File1

C:\File1.xlsx

File2C:\File2.xlsx

 

I would like to use the above to dynamically generate a list of table names associated with the files: 

 

File NamePathTable Names
File1C:\File1.xlsxTable1a
File1C:\File1.xlsxTable1b
File1C:\File1.xlsxTable1c
File2C:\File2.xlsxTable2a
File2C:\File2.xlsxTable2b
File2C:\File2.xlsxTable2c

 

What's the best way to go about doing this? 

 

Thank you. 

2 REPLIES 2
gabrielvilella
14 - Magnetar

If you want to retrieve the list of sheet names for a list of Excel files you have two options:

  1. If the schema is the same among them, you can use the Dynamic Input, having the template set up to retrieve the list of sheet names.
  2. If the schema is not the same, you need a batch macro (attached) to get the list of sheet names, same way as you'd need to read them. 
Qiu
20 - Arcturus
20 - Arcturus

@jjinsig 
Just a different way of interpreting your intention.

0304-jjinsig.PNG

Labels