簡體   English   中英

Office365 Outlook加載項命令

[英]Office365 outlook add-in commands

我正在使用以下清單在Outlook 2016中添加插件命令。

 <?xml version="1.0" encoding="utf-8"?> <OfficeApp xsi:type="MailApp" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"> <Id></Id> <Version>1.0.0.0</Version> <ProviderName></ProviderName> <DefaultLocale>en-US</DefaultLocale> <DisplayName DefaultValue="" /> <Description DefaultValue="" /> <SupportUrl DefaultValue="" /> <Hosts> <Host Name="Mailbox" /> </Hosts> <Requirements> <Sets> <Set Name="MailBox" MinVersion="1.1" /> </Sets> </Requirements> <FormSettings> <Form xsi:type="ItemRead"> <DesktopSettings> <SourceLocation DefaultValue="~remoteAppUrl/AppRead/Home/home.html" /> <RequestedHeight>250</RequestedHeight> </DesktopSettings> <TabletSettings> <SourceLocation DefaultValue="~remoteAppUrl/AppRead/Home/home.html" /> <RequestedHeight>250</RequestedHeight> </TabletSettings> <PhoneSettings> <SourceLocation DefaultValue="~remoteAppUrl/AppRead/Home/home.html" /> </PhoneSettings> </Form> <Form xsi:type="ItemEdit"> <DesktopSettings> <SourceLocation DefaultValue="~remoteAppUrl/AppRead/Home/home.html" /> </DesktopSettings> <TabletSettings> <SourceLocation DefaultValue="~remoteAppUrl/AppRead/Home/home.html" /> </TabletSettings> <PhoneSettings> <SourceLocation DefaultValue="~remoteAppUrl/AppRead/Home/home.html" /> </PhoneSettings> </Form> </FormSettings> <Permissions>ReadWriteMailbox</Permissions> <Rule xsi:type="RuleCollection" Mode="Or"> <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" /> <Rule xsi:type="ItemIs" ItemType="Message" FormType="ReadOrEdit" /> <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read" /> <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="ReadOrEdit" /> </Rule> <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0"> <Description resid="residDescription" /> <Requirements> <bt:Sets DefaultMinVersion="1.3"> <bt:Set Name="Mailbox" /> </bt:Sets> </Requirements> <Hosts> <Host xsi:type="MailHost"> <DesktopFormFactor> <FunctionFile resid="residDesktopFuncUrl" /> <ExtensionPoint xsi:type="MessageComposeCommandSurface"> <OfficeTab id="TabDefault"> <Group id="msgreadTabMessage.grp1"> <Label resid="residTemplateManagement" /> <Tooltip resid="residTemplateManagementTip" /> <Control xsi:type="Button" id="msgreadTabMessage.grp1.btnView"> <Label resid="residViewTemplates" /> <Tooltip resid="residViewTemplatesTip" /> <Supertip> <Title resid="residVewAndManageTemplates" /> <Description resid="residViewManageTemplatesSprTip" /> </Supertip> <Icon> <bt:Image size="16" resid="icon1_16x16" /> <bt:Image size="32" resid="icon1_32x32" /> <bt:Image size="80" resid="icon1_80x80" /> </Icon> <Action xsi:type="ShowTaskpane"> <SourceLocation resid="residManageTemplatesUrl" /> </Action> </Control> </Group> </OfficeTab> </ExtensionPoint> </DesktopFormFactor> </Host> </Hosts> <Resources> <bt:Images> <bt:Image id="icon1_16x16" DefaultValue="https://contoso.com/owa/images/app_icon_small.png" > </bt:Image> <bt:Image id="icon1_32x32" DefaultValue="https://contoso.com/owa/images/app_icon.png" > </bt:Image> <bt:Image id="icon1_80x80" DefaultValue="https://contoso.com/owa/images/app_icon_large.png" > </bt:Image> </bt:Images> <bt:Urls> <bt:Url id="residDesktopFuncUrl" DefaultValue="~remoteAppUrl/AppRead/Home/home.html" > </bt:Url> <bt:Url id="residManageTemplatesUrl" DefaultValue="~remoteAppUrl/AppRead/Home/home.html"> </bt:Url> <bt:Url id="residAddNewTemplateUrl" DefaultValue="~remoteAppUrl/AppRead/Home/home.html"> </bt:Url> </bt:Urls> <bt:ShortStrings> <bt:String id="residTemplateManagement" DefaultValue="Do.com"> </bt:String> <bt:String id="residViewTemplates" DefaultValue="Launch Do.com"> </bt:String> <bt:String id="residVewAndManageTemplates" DefaultValue="View and Manage Templates"> </bt:String> </bt:ShortStrings> <bt:LongStrings> <bt:String id="residDescription" DefaultValue="Use this app to automatically scan outgoing mails and insert content according to customizable mark-up. This app will not share your data with any third-party service."> </bt:String> <bt:String id="residTemplateManagementTip" DefaultValue="Operations for managing your template collection"> </bt:String> <bt:String id="residViewTemplatesTip" DefaultValue="Open a taskpane to display and manage your current templates"> </bt:String> <bt:String id="residViewManageTemplatesSprTip" DefaultValue="Open a taskpane that will display all templates saved under your profile and default templates provided by the service. From this pane you can add, remove, or change template properties."> </bt:String> <bt:String id="residMyTemplatesTabTip" DefaultValue="Insert content from a saved collection of prepared data, or embed tags into your mail that are automatically replaced on send!"> </bt:String> </bt:LongStrings> </Resources> </VersionOverrides> </OfficeApp> 

但是按鈕並未添加到功能區中。 如果我刪除“ VersionOverrides”,則插件將在Outlook 2016中顯示。

因此,VersionOverrides可以正常工作,但是在閱讀過程中以及在撰寫模式下的加載項列表中,該按鈕在郵件內部均未顯示。 我想念什么?

您清單中的URL必須是可訪問的。 您有很多以remoteAppUrl開頭的內容,還有一些是contoso.com。

使用此示例獲取清單,您可以根據自己的喜好對其進行編輯:github.com/jasonjoh/command-demo

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM