Ways to automate Outlook Application - outlook

After every patching we test basic Outlook functionality like able to send email etc, wanted to check if there is any way to automate the Outlook UI.

You can use Microsoft Active Accessibility or any wrapper around that API with Selenium for getting the job done.

Related

Can I use the Office Add-ins platform to automate Outlook?

I'm using the Windows desktop version of Outlook 365. I very frequently create a new Outlook 'task' and add the exact same text (with formatting) to the description section. I would like to automate this, so that all this is done with a single keystroke (or maybe mouse click). Can this be done with the Office Add-ins platform? I am a web developer, so using JavaScript is appealing.
If not, how might I approach this? I've tried VBA but the process was a bit difficult, which is why I'm hoping I can use a JavaScript approach.
Thanks in advance.
Addin is an overkill - it will need to be installed in your Exchange tenant or sideloaded.
VBA is not at all difficult if you already know JS.

Outlook JS Add-In - handling object save

I'm developing an Outlook Add-In using the new JavaScript API.
All is nice and works, but now I have a use case, that I want to save some custom data from my add-in side-pane when the user clicks "Save/Send" on an Calendar Event. I don't see any way to achieve that in the documentation, is it possible at all?
This is not possible with Office.js API. You may vote up this feature for upcoming release at Office Developers User Voice. Still nobody knows if it will be implemented any time soon. For now review the logic of your app to make it independent from Outlook events.

How to record the event that an attachment from Outlook has been clicked to run or downloaded to the disk?

I am developing a solution to monitor security events on Windows.
Two of the events to monitor are:
an attachment from an email (Outlook) has been clicked to run or downloaded to the disk
a link from an email has been clicked
Does anyone have experience in how to achieving these two things?
There are at least two ways I can think of to do this.
Outlook Extension
The easiest is to write a script. The MailItem.BeforeAttachmentRead lets you see what the user is going to open/save, and even allows you to cancel it if you find it suspect. You can also use several other related event hooks to customize the experience (check the docs). No hardcore kernel-level programming is required.
Kernel Hook
You could also implement a generic file hook that runs in the background and reports activity from the Outlook executable, but this is probably more cumbersome than it needs to be. The Windows API allows you to monitor when files are created, but you wouldn't be able to see specifically when an attachment is previewed (as far as I could determine from the docs).
Either way, you can then deploy your package through a Group Policy Object so that it can be invisibly installed without the user's knowledge. Once installed, you can choose to log those attachments through the usual channels, such as an Event Log that can be viewed in the Event Viewer.

Is it posible to Integrate web application to microsoft outlook or word?

Like how it asks email attachemnts to save directly to google drive or one drive . same way i want to get one more option that is my application.
It looks like you need to develop a Mail App which is based on JavaScript and HTML (+CSS). See Mail add-ins for Outlook for more information in MSDN.
Also see Word add-ins.

UI Automation tools for windows (web page embedded in a windows app)

We have a webpage(html) embedded inside an outlook addin. We have tried to automate UI testing using AutoIt and MS UI Automation framework in the past with the help of redemption to open/close outlook etc.. But we are having a problem accessing the elements inside the webpage within the addin (we are able to access Windows elements).
Does anybody know any automation tool/framework that can help us?
Give Sikuli a try. Start with the tutorials.
I can't think of any other solution, as you're working in a very custom situation.

Resources