Is There a Trigger Node to Automatically Run a Workflow When a New File is Uploaded to a SharePoint Folder?

Hello everyone,

I’m working on a workflow where the raw data (.xlsx) comes from a SharePoint folder. I need the workflow to be triggered automatically when someone uploads a new file to that folder. Is there a node or method in KNIME that can detect when a new file is added and trigger the workflow to run automatically? (I also have KNIME Server - I only know that it can schedule a workflow but I don’t have a idea how to do the trigger process to automatically run the workflow)

Thank you for your help!

Hi @Heldyyyyy,

you can accomplish that by periodically executing the workflow i.e. using Batch Mode:

Or you can leave Knime and the workflow open and periodically execute a loop using Vernalis nodes like that:

Combine it with List Files/Folders or the Wait node and you could easily accomplish what you want.

image

Best
Mike

2 Likes

Thanks for your help, will try it… currently my solution process was to have a flow in Power Automate (I’m still not finish) that can create a excel file with tagged as “YES” or “NO” whether there is a dump raw file in the sharepoint folder and from there knime will read the excel file and will base on the excel table if it will run or not (this I’m not sure how to do it though :sweat_smile:). I’m open to all alternative solution and thank you for replying!

@Heldyyyyy you can check a folder for a change every X minutes and then do something

1 Like