2016-09-02 6 views
0

Outlookのアドインを作成しました。それはリボンに2つのコマンドボタンを追加します。コマンドボタンをクリックすると、特定のURLを持つ作業ウィンドウが開きます。これは、デスクトップ版のOutlookではうまくいきますが、オンライン版のOutlookでこれを動作させる方法がわかりません。 MSのドキュメントは、OWAがアドインをサポートしていることを示していますが、明示的な例(マニフェスト)はありません。私がoutlook.office.comに行くとき、オプションボタンをクリックし、 "アドインの管理"をクリックします。アドインは "私のアドイン"の下に表示されますが、 "アンインストール"ボタンとオン/私がGIPHYアドインなどで持っているのと同じようにトグルをオフにします。OWAでOutlookアドインを実行する

マニフェストに何かがありませんか? (完全酒については、以下を含む)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MailApp" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"> 
    <Id>1e38cb9a-2367-47b9-96b5-8b054dfdd293</Id> 
    <Version>1.0.0.0</Version> 
    <ProviderName>ProviderName</ProviderName> 
    <DefaultLocale>en-US</DefaultLocale> 
    <DisplayName DefaultValue="DisplayName"/> 
    <Description DefaultValue="Description"/> 
    <HighResolutionIconUrl DefaultValue="https://localhost:10084/officeAddIn/icon128.png"/> 
    <SupportUrl DefaultValue="http://www.something.com" /> 
    <Hosts> 
     <Host Name="Mailbox"/> 
    </Hosts> 
    <Requirements> 
     <Sets> 
      <Set Name="MailBox" MinVersion="1.1"/> 
     </Sets> 
    </Requirements> 
    <FormSettings> 
     <Form xsi:type="ItemRead"> 
      <DesktopSettings> 
       <SourceLocation DefaultValue="https://localhost:10084/officeAddIn/app/home.html"/> 
       <RequestedHeight>250</RequestedHeight> 
      </DesktopSettings> 
     </Form> 
    </FormSettings> 
    <Permissions>ReadItem</Permissions> 
    <Rule xsi:type="RuleCollection" Mode="Or"> 
     <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/> 
     <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/> 
    </Rule> 

    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0"> 
     <Hosts> 
      <Host xsi:type="MailHost"> 
       <DesktopFormFactor> 
        <ExtensionPoint xsi:type="MessageReadCommandSurface"> 
         <OfficeTab id="TabDefault"> 
          <Group id="gv.store"> 
           <Label resid="gv.label.store" /> 

           <Control xsi:type="Button" id="gv.newasebtn"> 
            <Label resid="gv.label.newcase" /> 
            <Supertip> 
             <Title resid="gv.label.newcase" /> 
             <Description resid="gv.descr.newcase" /> 
            </Supertip> 
            <Icon> 
             <bt:Image size="16" resid="gv.icon.16" /> 
             <bt:Image size="32" resid="gv.icon.32" /> 
             <bt:Image size="80" resid="gv.icon.80" /> 
            </Icon> 
            <Action xsi:type="ShowTaskpane"> 
             <SourceLocation resid="gv.url.new_case" /> 
            </Action> 
           </Control> 

           <Control xsi:type="Button" id="gv.existingcasebtn"> 
            <Label resid="gv.label.existingcase" /> 
            <Supertip> 
             <Title resid="gv.label.existingcase" /> 
             <Description resid="gv.descr.existingcase" /> 
            </Supertip> 
            <Icon> 
             <bt:Image size="16" resid="gv.icon.16" /> 
             <bt:Image size="32" resid="gv.icon.32" /> 
             <bt:Image size="80" resid="gv.icon.80" /> 
            </Icon> 
            <Action xsi:type="ShowTaskpane"> 
             <SourceLocation resid="gv.url.existing_case" /> 
            </Action> 
           </Control> 
          </Group> 
         </OfficeTab> 
        </ExtensionPoint> 
       </DesktopFormFactor> 
      </Host> 
     </Hosts> 

     <Resources> 
      <bt:Images> 
       <bt:Image id="gv.icon.16" DefaultValue="https://localhost:10084/officeAddIn/icon16.png" /> 
       <bt:Image id="gv.icon.32" DefaultValue="https://localhost:10084/officeAddIn/icon32.png" /> 
       <bt:Image id="gv.icon.80" DefaultValue="https://localhost:10084/officeAddIn/icon80.png" /> 
      </bt:Images> 
      <bt:Urls> 
       <bt:Url id="gv.url.home" DefaultValue="https://localhost:10084/officeAddIn/app/home.html?gvhost=outlook" /> 
       <bt:Url id="gv.url.new_case" DefaultValue="https://localhost:10084/officeAddIn/app/new_case.html?gvhost=outlook" /> 
       <bt:Url id="gv.url.existing_case" DefaultValue="https://localhost:10084/officeAddIn/app/existing_case.html?gvhost=outlook" /> 
      </bt:Urls> 
      <bt:ShortStrings> 
       <bt:String id="gv.label.store" DefaultValue="Opslaan in" /> 
       <bt:String id="gv.label.home" DefaultValue="Home" /> 
       <bt:String id="gv.label.newcase" DefaultValue="Nieuw" /> 
       <bt:String id="gv.label.existingcase" DefaultValue="Bestaand" /> 
      </bt:ShortStrings> 
      <bt:LongStrings> 
       <bt:String id="gv.descr.newcase" DefaultValue="Nieuw" /> 
       <bt:String id="gv.descr.existingcase" DefaultValue="Bestaand" /> 
       <bt:String id="gv.descr.home" DefaultValue="Deze knop is uitsluitend bedoeld voor test doeleinden." /> 
      </bt:LongStrings> 
     </Resources> 
    </VersionOverrides> 
</OfficeApp> 

答えて

0

あなたのマニフェストはIconURL要素が欠落して解決できないSourceLocation要素内の1つのまたは複数のURLを持つように表示されます。 Office App Compatibility Kitで検証してみてください。

私はそれが<Resources><bt:Urls>のURLの1つと推測しています。 new_case.thmlとexisting_case.htmlが有効なファイルであることを確認してください。そのルールが必要とされていないので、<Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit"/>

あなたのアドインが読み取り専用モードのために起動されています。私はそれが間違っている可能性があります見ることができます

唯一の他の事は、この要素です。あなたのアドインをオンにすることができないことも奇妙です。アドインの管理ページのオンになっている列にアドインのチェックボックスがないと言っていますか?

+0

また、OWA/Outlook Onlineでは、アドインコマンド(別名リボンボタン)はサポートされていません。 – lgaud

+0

私はIconUrlを追加しましたが、実際には、私のアドインのリストに正しいアイコンを表示する以外はあまり効果がありませんでした。 これらのURLは、localhost:10084を指しているため解決できなかったと思います。私はここにそのアドレスで聴いているウェブサーバーを持っています。 しかし、私が疑っているのは、OWAが読み取りパネルのタスクパネルをサポートしていないことです。読んだペインにインラインボタンを表示して、クリックするとアドインでインラインiframeが開きます。それは機能しますが、デスクトップバージョンと機能が異なることは残念です – Jerry

+0

正しい - インラインタイプのフレームだけがOWAではサポートされていますが、縦書きのタスクペインはサポートされていません(インラインのものはサポートされていません。 。パリティは「将来的に」約束される –

関連する問題