How to autorun Office 365 outlook add-in

不想你离开。 提交于 2019-12-01 17:58:59

问题


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.


回答1:


The Office Add-In platform does not currently allow apps to auto-launch themselves in the way you're describing. Feel free to request this functionality on the Office Extensibility Platform's UserVoice.

Gabriel Royer

Developer on the Office Extensibility Team, MSFT




回答2:


Auto-launching Outlook add-ins is not supported today.

What is your scenario? There may be a different way to achieve it.




回答3:


Old question, new information:

While not quite "auto-launching", Outlook now supports pinning an add-in. When an add-in supports pinnable taskpane, the user is provided the option "pin" the add-in open. As the user moves between mail items, the pinned add-in will automatically load within the new mail item's context.



来源:https://stackoverflow.com/questions/32906599/how-to-autorun-office-365-outlook-add-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!