Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Connection Action Tool with directory

Cpirino
8 - Asteroid

Good morning guys, I have a problem with my flow. Despite connecting the action to replace part of the Directory path it is not working.

The replace should replace the term "Semana 26" with "Semana 28", but the flow remains running the way it originally was in the Directory.

 

Captura de tela 2022-07-05 084756.png

 

Captura de tela 2022-07-05 085257.png

 

Can anyone help me with my error?

3 REPLIES 3
Kenda
16 - Nebula
16 - Nebula

Hi @Cpirino 

 

In order for the action tool to work, you actually need another interface tool connected to it telling it what to do. See these articles for help:

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Apps-and-Macros/ta-p/3...

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Tool-Mastery-Action/ta-p/35500 

 

In what situations do you want 28 vs 26?

Cpirino
8 - Asteroid

The path that I want pass to Directory change in according with current week. "Semana" is "week" in portuguese. So I need change the path depending the current week.

Kenda
16 - Nebula
16 - Nebula

@Cpirino  Are you looking for user input here to use in an app or macro or are you simply looking for a way to get files from a dynamic folder path? If the answer is the latter, you could instead input the folder path up until "2022" in the directory tool and select the check box for "Include Subdirectories" then use a filter to keep only the files from the folder you want (i.e. the folders from the correct/dynamic week number). Something like the below expression should work in a filter tool to check if the FullPath field contains the strings you're looking for. Feel free to update to fit your needs. Try this out and see if it is helpful. 

 

 

contains([FullPath], "Semana " + tostring(DateTimeFormat(DateTimeToday(),"%U"))) && contains([FullPath], "\Carteiras\Validadas")

 

 

Labels