2016-06-07 17 views
1

Ich versuche, ein Outlook-Web-Add-In zu schreiben, um beim Erstellen eines neuen Termins zusätzliche Informationen anzufordern. An dieser Stelle kann ich den Bereich meines Add-Ins öffnen, wenn ich einen Termin lese, aber wenn ich versuche, einen Termin zu erstellen oder zu bearbeiten, ist dieser Bereich nicht sichtbar. Was muss ich tun, damit dies beim Erstellen oder Bearbeiten eines Termins angezeigt wird? Ich habe verschiedene OfficeApp-Typen und verschiedene Arten von ExtensionPoints ausprobiert.Outlook-Web-Add-In wird im Kalenderbearbeitungsmodus nicht aktiviert

Mein Manifest wie folgt aussieht:

<?xml version="1.0" encoding="UTF-8"?> 
<!--Created:...--> 
<OfficeApp 
    xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" 
    xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" 
    xsi:type="MailApp"> 
    <!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. --> 
    <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. --> 
    <Id>...</Id> 
    <!--Version. Updates from the store only get triggered if there is a version change. --> 
    <Version>1.0.0.0</Version> 
    <ProviderName>My Company</ProviderName> 
    <DefaultLocale>en-US</DefaultLocale> 
    <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. --> 
    <DisplayName DefaultValue="My Add-In" /> 
    <Description DefaultValue="My First Outlook Web Add-In" /> 
    <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. --> 
    <AppDomains> 
    <AppDomain>https://login.microsoftonline.com</AppDomain> 
    <AppDomain>https://login.live.com</AppDomain> 
    </AppDomains> 
    <!--End Basic Settings. --> 
    <Hosts>  
    <Host Name="Mailbox" /> 
    </Hosts> 
    <Requirements> 
    <Sets> 
     <Set Name="Mailbox" MinVersion="1.1" /> 
    </Sets> 
    </Requirements> 
    <FormSettings>  
    <Form xsi:type="ItemRead"> 
     <DesktopSettings> 
     <SourceLocation DefaultValue="~remoteAppUrl/MeetingRead.html" /> 
     <RequestedHeight>250</RequestedHeight> 
     </DesktopSettings> 
    </Form>  
    </FormSettings> 
    <Permissions>ReadWriteItem</Permissions> 
    <Rule xsi:type="RuleCollection" Mode="Or"> 
    <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="ReadOrEdit" />   
    </Rule> 
    <DisableEntityHighlighting>false</DisableEntityHighlighting> 
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0"> 
    <Requirements> 
     <bt:Sets DefaultMinVersion="1.3"> 
     <bt:Set Name="Mailbox" /> 
     </bt:Sets> 
    </Requirements> 
    <Hosts> 
     <Host xsi:type="MailHost"> 
     <DesktopFormFactor> 
      <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). --> 
      <FunctionFile resid="functionFile" /> 
      <!-- Message Read --> 
      <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface"> 
      <!-- 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="group1"> 
       <Label resid="groupLabel" /> 
       <!-- Launch the add-in : task pane button --> 
       <Control xsi:type="Button" id="msgReadOpenPaneButton"> 
        <Label resid="paneShowLabel" /> 
        <Supertip> 
        <Title resid="paneShowLabel" /> 
        <Description resid="paneShowTooltipLong" /> 
        </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>   
     </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="messageReadTaskPaneUrl" DefaultValue="~remoteAppUrl/MessageRead.html" /> 
     </bt:Urls> 
     <bt:ShortStrings> 
     <bt:String id="groupLabel" DefaultValue="Group label" /> 
     <bt:String id="customTabLabel" DefaultValue="Tab label" /> 
     <bt:String id="paneShowLabel" DefaultValue="Pane label" /> 
     <bt:String id="paneShowTooltipShort" DefaultValue="Open pane." />   
     </bt:ShortStrings> 
     <bt:LongStrings> 
     <bt:String id="paneShowTooltipLong" DefaultValue="Look for any options in this element." /> 
     <bt:String id="paneReadSuperTipDescription" 
        DefaultValue="Opens a pane displaying all available properties. This is an example of a button that opens a task pane." /> 
     </bt:LongStrings> 
    </Resources> 
    </VersionOverrides> 
</OfficeApp> 

Wenn Sie weitere Dateien oder Informationen benötigen, fragen Sie einfach.

Max

Antwort

1

Es sieht aus wie Sie ein Formularelement für Typ ItemEdit sind vermisst. Versuchen Sie, dass innerhalb FormSetting, ähnlich wie diese:

<FormSetting> 
    ... 
    <Form xsi:type="ItemEdit"> 
    <DesktopSettings> 
     <SourceLocation DefaultValue="your url" /> 
     <RequestedHeight>250</RequestedHeight> 
    </DesktopSettings> 
    </Form> 
</FormSetting> 
+0

vielen Dank. Jetzt kann ich meinen Plugin-Bereich öffnen, indem ich auf "Add-Ins" klicke und ihn auswähle. Aber ist es möglich, es in die Bearbeitungsebene einzubinden oder den Add-In-Bereich sofort zu öffnen, wenn mein Plugin ausgewählt ist? –

1

Wenn Sie unter AppointmentOrganizerCommandSurface sind, sollten Sie Ihre Schaltfläche auf allen Terminen zu dem Band hinzugefügt werden, dass Sie der Veranstalter sind. Hinzufügen einer Schaltfläche unter: AppointmentAttendeeCommandSurface Fügt eine Schaltfläche hinzu, wenn Sie NICHT der Organisator sind (in diesem Fall wären Sie wahrscheinlich ein Teilnehmer).

Wird die Schaltfläche nicht in der Multifunktionsleiste angezeigt? In welcher Version von Outlook sind Sie tätig? (oder versuchen Sie, dies in OWA zu tun?)

Es gibt derzeit keine Möglichkeit, ein Fenster standardmäßig zu öffnen, wenn ein Element geöffnet wird. Dies ist jedoch eine sehr gefragte Funktion.

+0

Tim, es scheint ItmeId ist nicht verfügbar beim Bearbeiten eines vorhandenen Ereignisses (AppointmentOrganizerCommandSurface). Gibt es eine Möglichkeit, ItemId im Bearbeitungsmodus zu erhalten? Danke – Alexey

+0

Versuchen Sie es mit item.saveAsync(). https://dev.office.com/reference/add-ins/outlook/1.5/Office.context.mailbox.item?product=outlook&version=v1.5 –