How to trigger an email from Orchestrator when a BOT fail or process completed

I am looking for a process to trigger an email from Orchestrator when any BOT fail or process get completed.

Your inputs will be greatly appreciated.

@rkelchuri

For exceptions or when process fails you can setup alerts…but for completion there is no direct way from orchestrator…you have to add at the process level in studio itself to send an email for success

Cheers

Hi @rkelchuri,

You can use the Orchestrator API in UiPath to trigger an email notification.

You can create a new process, set up all data like orch url, tenant name, smtp port, mail body, everything in that process & make an API call using Get Job. Using if condition, you can determined the failed processes & an email can be sent accordingly.

Let is know if any more details required on this topic.

Hope this helps,
Best Regards.

@rkelchuri Yes you can make it with different process.
I implemented it like this one.

  1. I made a separate process called “Monitoring Process” where I am using Orchestrator API.
  2. I pass my process name with specific time interval and in return I get all jobs for that time.
  3. After getting all jobs I filter it and if Job Status is “Failed/Faulted” then I am sending email about it.

If you are really interested for implementation i would help you. Thanks

What you really should be doing is proper error handling in your processes so that Jobs don’t fault. And then send the appropriate emails from within your process code.

I suggest using the Send SMTP Email activity, as it’s simpler and more reliable than the other send email activities.

Thanks to All for quick inputs. I am looking for email alert from Orchestrator because it has a purpose.

this post give more details on how to setup email alert in orchestrator.

@rkelchuri

I believe that’s the same post shared by @Anil_G in post #2. If that was helpful, please mark his answer as the solution & close the topic.

Best Regards.

Well, it’s not the complete post as a solution. If i consider and mark it as a solution others may misled. Also Anil mentioned different answer which is not the solution. So i found my solution for my question.

I used webhooks as a solution for email alert from Orchestrator.
Watch this hope useful

1 Like

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