Start a Orcestrator job, whenever a new email arrives

I don’t know it this is the right place to ask this question, but I want to start a Job in Orcestrator using the API whenever I receive a new Email.
What is the best way to get notified whenever a new email arrives at the inbox?


@bcorrea @Palaniyappan

Any Suggestions on this?

Just a suggestion,

try to retrieve the mails for every 5 mins or for any particular time interval and check if you got the required mail. Then trigger the job using API.

here you have steps to authenticate and trigger API

You don’t really need to trigger API in this situation as you are checking for mail. You can just use IF condition and invoke the workflow you want to run in the studio itself

so you are telling me, I should use a Bot that scanns the mailbox for new emails?

Yes exactly. I don’t find any other option like we have file change trigger option in file system :slight_smile:

Are you looking to use Orchestrator? Or can you work without it?

You can just have a loop in studio.

If you want to use Orch then you’ll need make a different bot that still checks it and then triggers a job in Orch

Hello @ClemensSteinbauer,

You can write a powershell script to read emails from outlook and then trigger the start job API from this script when a new email arrives. You can schedule this script on the robot machine using Task Scheduler.