Monitoring folders and labels

How can I start a process when a file has been placed in a folder without having to constantly start the process and query the folder contents?

The same applies to an inbox. How can I start a process automatically when an email arrives in a specific mailbox without having to constantly start the process itself and check the mailbox?

Hi @Matthias_Andermann

Welcome to UiPath,

  1. file system watcher: use file change trigger activity, set folderpath, and trigger on created event.
  2. email monitoring: use get outlook mail messages, set mailfolder to “inbox” and onlyunreadmessages to true.

Happy Automation

For mail inbox you can use integration service like Gmail or Outlook 365.

Once you set up integration service use trigger to start the process.

Similarly you can use SharePoint or Google Drive integration service for folder monitoring.

Thank you for the quick response.

But if I understand correctly, I’m integrating these activities into the process.
If the process is running and a file is moved to the folder, it continues.
But that’s not exactly what I want.
I don’t want the process to check the folder (for example) every 5 minutes. Or for another process to constantly check the folder (or at certain intervals) and then possibly start the process.
I actually need to monitor a folder or an email inbox - without a process.
Do you understand? Or did I just misunderstand your answer?

Best regards

Hello @Matthias_Andermann

You could use Integration Services to setup Connectors to eg. Google Drive or OneDrive.
And then you could create Triggers based on file changes.

Regards
Soren

1 Like

I understand, in UiPath, the process needs to be active to trigger actions. Unfortunately, i think there’s no way to monitor a folder or inbox in real-time without the process running. You would need an external solution (like a Windows service or background process / Python script…) to trigger UiPath when a file or email is detected.
OR
You could use Integration Services to set up Connectors, then trigger the UiPath process when a file or email is detected.

If you found helpful, mark as a solution tick.
Happy Automation!

Okay… thanks.
It doesn’t solve my file problem, though, because I didn’t want to monitor a Drive folder, but rather a folder on our network drive.

But the mail trigger via integration services doesn’t work either. I’ve set everything up:

  • Gmail Connector
  • add Trigger (eMail received)
  • and specified the label

But the process still won’t start

@Matthias_Andermann

  1. If its a network drive the ideally you need to run the active trigger or process
  2. For Integration services first try to use without filters just to check if the trigger is working as expected and then add the filter then we know if the issue is with filter and take necessary actions

cheers

Hi.
Thanks for your help.
Unfortunately, the trigger doesn’t work even without a filter.
update
without filter worked now. Maybe it took a moment for the filter to activate?!
Still nothing is happening with the filter
update
I’ve now opened a ticket with UiPath Support.
I can’t figure out why it doesn’t work at all.
The settings aren’t actually that complex.

regards

By the way - I also tried the google drive trigger - unfortunately it doesn’t work either

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.