Outlook Web加载项未在日历编辑模式下激活

Outlook Web加载项未在日历编辑模式下激活,outlook,office365,office365-apps,outlook-web-addins,Outlook,Office365,Office365 Apps,Outlook Web Addins,我正在尝试编写Outlook web加载项,以在创建新约会时询问其他信息。此时,我可以在阅读约会时打开外接程序的窗格,但当我尝试创建或编辑约会时,此窗格不可见。在创建或编辑约会时,我必须执行哪些操作才能显示此信息?我尝试了不同的OfficeApp类型和不同类型的扩展点 我的清单看起来像: <?xml version="1.0" encoding="UTF-8"?> <!--Created:...--> <OfficeApp xmlns="http://schem

我正在尝试编写Outlook web加载项,以在创建新约会时询问其他信息。此时,我可以在阅读约会时打开外接程序的窗格,但当我尝试创建或编辑约会时,此窗格不可见。在创建或编辑约会时,我必须执行哪些操作才能显示此信息?我尝试了不同的OfficeApp类型和不同类型的扩展点

我的清单看起来像:

<?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>

...
1.0.0.0
我的公司
恩美
https://login.microsoftonline.com
https://login.live.com
250
读写项目
假的
如果您需要其他文件或信息,请询问


Max

类型ItemEdit似乎缺少表单元素。尝试添加该内部表单设置,如下所示:

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

...
250

如果您在AppointmentOrganizerCommandSurface下,您的按钮应添加到您作为组织者的所有约会的功能区中。在:AppointmentAttendeeCommandSurface下添加按钮在您不是组织者时添加按钮(在这种情况下,您可能是与会者)

您没有看到您的按钮显示在功能区中吗?您使用的是什么版本的Outlook?(或者你想在OWA中这样做?)


当前无法在项目打开时默认打开窗格。但这是一项要求很高的功能

非常感谢。现在我可以通过点击“插件”打开我的插件窗格,然后选择它。但是,是否可以将其包含在编辑平面中,或者在选择我的插件后立即打开外接程序窗格?Tim,编辑现有事件(AppointmentOrganizerCommandSurface)时,它似乎不可用。有没有办法在编辑模式下获取ItemId?ThanksTry正在使用item.saveAsync()。