Alteryx Designer Desktop Discussions

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

Take analytic app chosen field and prefix it to outputted file name

wonka1234
10 - Fireball

Hi,

 

I am trying to make the input typed in by someone to append to the beginning of a file.

 

Ie if a user types in 202211 the output file name will be  202211_test.xlsx ,  if its multiple dates, make it 202211_202212_test.xlsx

 

can this be done? 

 

see attached workflow.

4 REPLIES 4
DataNath
17 - Castor

Hey @wonka1234, here's one way you could do it:

 

1) Add a bit of dummy text to your output file name that will be replaced on a real run (ABC here):

 

DataNath_0-1682345029563.png

 

2) Add another Action tool to your Output Data, which replaces this 'ABC' with your list of dates - the nested Replace() is to swap commas for underscores so that if the user types '202211,202212', this becomes '202211_202212' as mentioned above:

 

DataNath_1-1682345110613.png

 

3) Now if I run this:

 

DataNath_3-1682345144577.png

DataNath_4-1682345159917.png

 

Hope this helps? Let us know if not!

binuacs
20 - Arcturus

@wonka1234 another method of doing this

binuacs_0-1682357412930.png

 

wonka1234
10 - Fireball

@DataNath thanks! if i wanted a second filter to be appended? ie

 

202211_202212_jon_test.xlsx

 

 

wonka1234_1-1682366323642.png

 

DataNath
17 - Castor

@wonka1234 just apply the same principle again - set up your Output to be something like ‘ABC_XYZ_test.xlsx’. The first Text Box input that we dealt with earlier, set that up to change the ‘ABC’ part, and then set up the second (name) filter to replace the ‘XYZ’.

Labels