gpt4 book ai didi

javascript - Office.context.mailbox.displayNewMessageForm 在移动设备中不起作用

转载 作者:行者123 更新时间:2023-11-30 20:05:47 29 4
gpt4 key购买 nike

我试图通过单击 Outlook Web 插件中的按钮创建一个新的邮件表单,我使用 displayNewMessageForm .该功能在 Web 浏览器和 Outlook 桌面上运行良好。但同样的功能在 Outlook Mobile 中不起作用。

你们的 outlook mobile 有这个功能吗?

移动 list :

 <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
<Requirements>
<bt:Sets DefaultMinVersion="1.5">
<bt:Set Name="Mailbox" />
</bt:Sets>
</Requirements>
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="functionFile" />
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<!--Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
<OfficeTab id="TabDefault">
<!-- Up to 6 Groups added per Tab -->
<Group id="msgReadGroup">
<Label resid="groupLabel"/>
<!-- Launch the add-in : task pane button -->
<Control xsi:type="Button" id="msgReadOpenPaneButton">
<Label resid="paneReadButtonLabel"/>
<Supertip>
<Title resid="paneReadSuperTipTitle"/>
<Description resid="paneReadSuperTipDescription"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon16"/>
<bt:Image size="32" resid="icon32"/>
<bt:Image size="80" resid="icon80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="messageReadTaskPaneUrl"/>
</Action>
</Control>
<!--Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
</Group>
</OfficeTab>
</ExtensionPoint>
<!--Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee-->
</DesktopFormFactor>

<MobileFormFactor>
<FunctionFile resid="functionFile" />
<ExtensionPoint xsi:type="MobileMessageReadCommandSurface">
<Group id="mobileMsgRead">
<Label resid="groupLabel" />
<Control xsi:type="MobileButton" id="TaskPaneBtn">
<Label resid="residTaskPaneButtonName" />
<Icon xsi:type="bt:MobileIconList">
<bt:Image size="25" scale="1" resid="icon32" />
<bt:Image size="25" scale="2" resid="icon32" />
<bt:Image size="25" scale="3" resid="icon32" />

<bt:Image size="32" scale="1" resid="icon32" />
<bt:Image size="32" scale="2" resid="icon32" />
<bt:Image size="32" scale="3" resid="icon32" />

<bt:Image size="48" scale="1" resid="icon32" />
<bt:Image size="48" scale="2" resid="icon32" />
<bt:Image size="48" scale="3" resid="icon32" />
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="residTaskpaneUrl" />
</Action>
</Control>
</Group>
</ExtensionPoint>
</MobileFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="icon16" DefaultValue="~remoteAppUrl/Images/icon16.png"/>

<bt:Image id="icon32" DefaultValue="~remoteAppUrl/Images/icon32.png"/>

<bt:Image id="icon80" DefaultValue="~remoteAppUrl/Images/icon80.png"/>

</bt:Images>
<bt:Urls>
<bt:Url id="functionFile" DefaultValue="~remoteAppUrl/Functions/FunctionFile.html"/>
<!--<bt:Url id="functionFile" DefaultValue="~remoteAppUrl/Functions/FunctionFile.html"/>-->
<bt:Url id="messageReadTaskPaneUrl" DefaultValue="~remoteAppUrl/home.html"/>
<bt:Url id="residTaskpaneUrl" DefaultValue="~remoteAppUrl/home.html"/>
<!--<bt:Url id="messageReadTaskPaneUrl" DefaultValue="~remoteAppUrl/home.html"/>-->
</bt:Urls>
<bt:ShortStrings>
<bt:String id="groupLabel" DefaultValue="test codeColumn"/>
<bt:String id="customTabLabel" DefaultValue="test codeColumn"/>
<bt:String id="paneReadButtonLabel" DefaultValue="test codeColumn"/>
<bt:String id="residTaskPaneButtonName" DefaultValue="test codeColumn"/>
<bt:String id="paneReadSuperTipTitle" DefaultValue="test codeColumn"> </bt:String>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="paneReadSuperTipDescription" DefaultValue="test test test">

</bt:String>
</bt:LongStrings>
</Resources>
</VersionOverrides>

更新:如果你们只想在手机上使用它,请使用下面的代码

Office.context.ui.displayDialogAsync(url,
{ height: 75, width: 80, requireHTTPS: true });

Url变量可以这样写

var url = "mailto:someone@example.com?Subject=Hello%20again";

最佳答案

displayNewAppointmentForm (在您的标题中)和 displayNewMessageForm (在您的问题中)是两个不同的函数。 displayNewAppointmentForm Outlook for iOS 或 Outlook for Android 不支持此功能。同时displayNewMessageForm当您在 list 文件中正确指定对移动设备的支持时,该功能将在移动设备上运行。有关更多信息,请阅读 Add support for add-in commands for Outlook Mobile文章。

关于javascript - Office.context.mailbox.displayNewMessageForm 在移动设备中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52949420/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com