I have seen many existing discussions on this topic but I want to understand this with some more clarity.
How teams are implementing the functionality using Alteryx when there is a need to trigger a Alteryx job in the server on receiving the source file in a folder?
Thanks in advance,
Krishna
Solved! Go to Solution.
Hi @Krishnasn .
The best option is to trigger using an RPA solution, such as UiPath, Automation Anywhere, Power Automate, Mulesoft RPA, etc.
If you don't have that, you can have the workflow running every X minutes (not ideal, I know) and only proceed if a new file is available in the folder.
Best,
Fernando Vizcaino
Hi Fernando @fmvizcaino ,
Thanks for your response.
Can you please elaborate or provide a sample of how we can put the logic in a workflow to proceed if a new file is available in the folder?
Are you talking about 2 different workflows, then how can we set the dependency
if not, then is this possible in a single workflow?
TIA,
Krishna
Hi @Krishnasn ,
This can be done with Control Containers (2023.1+). https://community.alteryx.com/t5/Engine-Works/The-Ins-amp-Outs-of-Control-Containers/ba-p/1314495
You can have a directory tool in the first container, and when a new file appears, the second container is triggered.
The rule to identify a new file could be using one of the dates generated by the directory tool, something in the filename, or you could keep a simple file containing all the files that have already been processed.
The second container will process everything if you have a file available after the filter tool. If you don`t, the container won`t be triggered and the rest of the process will be skipped.
Best,
Fernando Vizcaino
Thank you very much.
You are right as it is an overhead for the Alteryx Server to keep running the workflow.
But I will see if this can be implemented as using a control container to execute the logic only when the file is encountered would significantly reduce the job runtime.
Regards,
Krishna
The good part about the control container is that you will only have the workflow running for a second. It's not ideal because your schedule forecast will add many workflows, but the total runtime will be minimal.
Thanks,
Fernando Vizcaino
I'm curious to know how can an iterative macro be used to implement this functionality. I came across this post but it seems to be archived.
Do you have any leads on this approach?
The iterative macro idea is to keep your workflow running endlessly until a file is identified, which would probably trigger another workflow using the server APIs.
The main issue with the approach is that you would have a workflow running 100% of the time.
On keeping the workflow running endlessly, I have the below thoughts --
Thanks & Regards,
Krishna
Hi @Krishnasn ,
Best,
Fernando Vizcaino