Support > Forums > OpenBots Studio > Trigger the process by placing a file to directory

Trigger the process by placing a file to directory

Pratibha Fonseka

  • Reporter
  • Calender Icon June 09,2023 at 4:11 PM

Hi Team,

According to one of our requirement, client needs to initiate the process by placing file as a trigger. Therefore, we need to know if there is any way to trigger a process by placing file.

If there is a way to fulfil that particular task please inform us the method of that implementation.

Thank you.

This forum has 317 topics, 687 replies, and was last updated 4 months ago by Nataly Alvarado...

Poornima Malviya

  • Participant
  • Calender Icon June 15,2023 at 5:04 PM

Hi Pratibhaf,

Yes, you can trigger jobs based on external criteria, like adding a new file to a specified folder.

​There are different ways to configure it, depending on the client requirements and resources.

​In general terms, you'll need something to determine when the criteria is met. This can be done by separating the process into 2 bots: the monitoring bot and the processor bot.

The monitoring bot will constantly check if a new file has been added. It can check continuously, or it can check in specified intervals (like every hour). If the monitoring bot finds that a new file has been added, it can trigger an action. For example, it can create a new queue item, which will trigger a queue arrival schedule for the processor bot.

Pratibha Fonseka

  • Participant
  • Calender Icon June 12,2023 at 4:10 AM

Hi Team,

According to one of our requirement, client needs to initiate the process by placing file as a trigger. Therefore, we need to know if there is any way to trigger a process by placing file.

If there is a way to fulfil that particular task please inform us the method of that implementation.

Thank you.

Nataly Alvarado...

  • Participant
  • Calender Icon June 09,2023 at 4:24 PM

Hi Tushar Rane,

Please note that the OpenBots' database commands use OLEDB to stablish connection, so the query could need some adjustments.

If you could share the type of database you are attempting to connect and your current Studio version, we can help you find the correct connection query. You can also use the connection builder included in the command to help you build it.

Thanks!

You are not authorized to reply, please click here to login and add your reply to this topic.