We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Input file when uploaded to folder

Jessica7
5 - Atom

Hi,

 

We have a folder and if a file is uploaded within that folder within 60 seconds of the workflow being run, we want it to select that file and continue with the rest of the workflow.

 

It will be the only file in the folder, if nothing is in the folder we want the workflow to end.

 

Please can anyone suggest how I could complete this?

2 REPLIES 2
Robin_McIntosh
11 - Bolide

@Jessica7 - Here's one way of doing it.

 

Use the Directory tool to find all the files in the specific folder.  In this example, I'm finding all files with .xlsx extension.

Robin_McIntosh_5-1678829536987.png

 

Then use the filter tool with a custom filter of DateTimeDiff based on Now and the file creation timestamps.

Robin_McIntosh_6-1678829573763.png

 

Lastly, based on true result, you can then pass your resulting file (fullpath) to the Dynamic Input.

Robin_McIntosh_4-1678829502001.png

 

 

 

Jessica7
5 - Atom

Hi,

 

Thank you for this, do you know how I would keep this going, I want it to check maybe 100 times to see if the file has been added to the folder and then if not error and if a file has been added use that file through the dynamic input as you stated to use that file?

 

I was thinking I will need an iterative macro, but I'm not sure how to create it using these tools?

 

 

Labels
Top Solution Authors