侧面加载 Outlook javascript 加载项 [英] Side loading an Outlook javascript add-in

查看:52
本文介绍了侧面加载 Outlook javascript 加载项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始为 Outlook 创建加载项时,我遇到了一段糟糕的时光.我想使用新的 html/javascript/manifest 方法.我已经能够创建一个与 Outlook.live.com 配合使用的清单和应用程序.我完全陷入困境的是桌面 Outlook.如何使用桌面 Outlook 安装/调试加载项?

我在 UI 中找不到任何可以让我添加这种样式的插件的内容.此外,

  • 纯网络开发.就我个人而言,我并不经常使用 Office 开发工具.我使用 "https://localhost:XXXX" 作为 url 手动安装我的加载项,然后在IIS express 做调试.为了进入源代码,我在 OWA 中浏览时使用了我的浏览器(Chrome、Edge、IE 等)的调试器.当我需要专门在桌面(对于 Windows 或 Mac)上进入源代码时,我使用 Vorlon.js 另见此博文.我的建议也是经常使用 IE 11(在 Win10 中仍然可用!)和 OWA 进行测试/调试.事实上,Office Desktop 内部用于加载项的浏览器是 IE.
  • I am having a horrible time getting started at creating an add-in for Outlook. I want to use the new html/javascript/manifest approach. I have been able to create a manifest and application which works great with outlook.live.com. Where I am completely getting stuck is with desktop Outlook. How do I install/debug my add-in with desktop Outlook?

    I cannot find anything in the UI which will let me add this style of add-in. Additionally the Microsoft documentation did not make things any clearer. Their docs seem to hint using this type of add-in is only possible if you are connecting to an Exchange server.

    Any help would be greatly appreciated.

    解决方案

    Yes the add-in will load on Outlook desktop only if your mailbox is Exchange. I am not sure the add-ins work with a personal Microsoft account (e.g hotmail.com, outlook.com) and Office desktop. Keep in mind that the support of mail add-ins for personal account is relatively new (officially announced in march 2016).

    To develop your add-in I suggest you to use a organizational account (i.e. Office365 account). Support for organizational account has been released in 2013 and is a much more mature solution for you to get started. You can have a free dev account at dev.office.com.

    Edit: October 2016 personal account are supported now by "Personal mailbox accounts" aka outlook.com accounts

    Let us keep in mind that a mail add-in is not installed on a mail client (desktop, OWA) but on the mail account. When you "install" an add-in you only set a xml file on your mailbox that basically says "there is a web add-in out there called X and that is served at this url...". Then, if you install add-in X on your mailbox smaclell@mytestcompany.onmicrosoft.com, this add-in will load the add-in web iframes whether you are consulting your mailbox with Outlook Web Access (OWA) or Outlook Desktop.

    To install the add-in for one user mailaccount, you have to use the Outlook Web Access. See this blog post. Note also that you can install the add-in for the whole organisation (Admin > Exchange Admin > Add-ins). Finally, Visual Studio is also able to push the manifest to your office 365 mailbox. To have this you need Office Development Tools.

    For debugging in Outlook Desktop, I know two approaches.

    1. Use the Office Developement Tools with visual studio and select your sample add-in project as 'Starting project' and in properties select 'Office Desktop'.
    2. Plain web development. Personally, I do not use really much the Office Development Tools. I install manually my add-in with "https://localhost:XXXX" for url and I start the web project on IIS express to do the debugging. For stepping into the source code, I use the debugger of my browser (Chrome, Edge, IE etc.) when browsing in OWA. When I need to step into source code specifically on Desktop (For windows or for Mac) I use Vorlon.js see also this blog post. My advice is also to test/debug frequently with IE 11 (still available in Win10!) and OWA. Indeed, the browser used internally by Office Desktop for the add-ins is IE.

    这篇关于侧面加载 Outlook javascript 加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆