Trigger robot via outlook mail message

Hi,

What’d be the best way to trigger my robot.bat file via incoming outlook mail message. I know that MS disabled “run script” rule from outlook and that you can get feature back editing registry. That said are there any other options?

Br,
Mikko

@Mikko_S,

Looks this will work,

https://social.technet.microsoft.com/Forums/lync/en-US/d6b824de-4888-4522-8f53-914ad1f2e3f1/run-bat-once-the-outlook-mail-received-with-subject-line-welcome-on-daily-by-user?forum=outlook

1 Like

Ended up using .bat file and built VB script rule to outlook to run robot.bat when certain email arrives. Outlook warning mechanism triggered because uipath software was trying to use its address book. Disabling this setting in options solved everything…

1 Like

Can you post your script here? If you want :smiley:

Sure it was something like this:
Naturally you have to enable outlook to run scripts first. Here are instructions to enable that: https://www.slipstick.com/outlook/rules/outlook-run-a-script-rules/
In outlook rules you can define for example from which address script triggering works etc…

Script in Outlook looks like this:

Sub ProgramName(MyMail As MailItem)
If InStr(1, MyMail.Subject, “Whatever email msg you want to trigger”) > 0 Then
Shell “c:\temp\a.bat”
Shell “c:\temp\b.bat”
Shell “c:\temp\c.bat”
End If
End Sub

1 Like

Thank you !

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