I'm creating an Office 365 add-in for Outlook. I want my add-in to run automatically when user reads email (opens it in reading pane).
My current version displays add-in name in top of mail body and when I click it add-in runs.
Office.initialize = function (reason) {
$(document).ready(function () {
displayItemDetails();
});
};
I would also like to hide that add-in button and just run it behind the scene.