【问题标题】:Outlook: Function File functions not called in Desktop ClientOutlook:桌面客户端中未调用函数文件函数
【发布时间】:2019-03-14 03:10:00
【问题描述】:

outlook插件的函数文件如何调试。由于某种原因,插件可以在线运行,但不能在桌面客户端上运行。

过去我发现桌面客户端不支持某些 Javascript 标记。 所以现在我已经将我的函数文件更改为一个简单的文件,只是为了验证在桌面客户端中调用函数。我可以说函数something 在桌面客户端中根本没有被调用。操作永远挂起。 F12 调试工具显示没有目标。

如何调试这个函数文件?

函数文件

(function () {
    Office.initialize = function (reason) {
    };
})();

function doIt(event) {
    console.log("Here");
    event.completed();
}

清单.xml

...
<ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
<OfficeTab id="appOrgTab">
    <Group id="appOrgCmdGroup">
        <Label resid="groupLabel"/>
        <Control xsi:type="Button" id="appOrgCtrl">
            <Label resid="appOrgLabel"/>
            <Supertip>
                <Title resid="appOrgTitle"/>
                <Description resid="appOrgDesc"/>
            </Supertip>
            <Icon>
                <bt:Image size="16" resid="icon16"/>
                <bt:Image size="32" resid="icon32"/>
                <bt:Image size="80" resid="icon80"/>
            </Icon>
            <Action xsi:type="ExecuteFunction">
                <FunctionName>doIt</FunctionName>
            </Action>
        </Control>
    </Group>
</OfficeTab>
</ExtensionPoint>
<ExtensionPoint xsi:type="Events">
<Event Type="ItemSend" FunctionExecution="synchronous" FunctionName="doIt"/>
</ExtensionPoint>
...

【问题讨论】:

    标签: office365 outlook-addin office-js office-addins outlook-web-addins


    【解决方案1】:

    我发现问题出在我的自签名证书上。使用我的插件作为任务窗格...我可以在窗格中授权证书。但是由于没有这样的功能执行窗格,所以对我的服务器的请求被阻止了。 我安装了一个有效的证书,它现在可以工作了。

    【讨论】:

      猜你喜欢
      • 2018-10-20
      • 2016-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-06-20
      • 1970-01-01
      相关资源
      最近更新 更多