Office js Outlook Web加载项:有两个检测到的实体不存在';不适用于上下文检测

Office js Outlook Web加载项:有两个检测到的实体不存在';不适用于上下文检测,office-js,outlook-web-addins,Office Js,Outlook Web Addins,在同一个outlook web加载项中,我尝试使用不同的正则表达式添加两个不同的上下文检测。(每个正则表达式规则匹配项都有自己的源位置。) 但是,它不起作用。 当前行为是激活第一个检测到的实体。然而,其他人 你不是 我想知道这是否是上下文检测的限制。 如果没有,是否有人可以提供任何示例,说明检测到的实体超过1个 这是我的舱单: .... <Hosts> <Host xsi:type="MailHost"> <DesktopFormFactor&g

在同一个outlook web加载项中,我尝试使用不同的正则表达式添加两个不同的上下文检测。(每个正则表达式规则匹配项都有自己的源位置。)

但是,它不起作用。 当前行为是激活第一个检测到的实体。然而,其他人 你不是

我想知道这是否是上下文检测的限制。 如果没有,是否有人可以提供任何示例,说明检测到的实体超过1个

这是我的舱单:

....
<Hosts>
    <Host xsi:type="MailHost">
      <DesktopFormFactor>
        <!-- DetectedEntity -->
        <ExtensionPoint xsi:type="DetectedEntity">
          <Label resid="ContextLabel1" />
          <SourceLocation resid="DetectedURL1" />
          <Rule xsi:type="RuleCollection" Mode="And">
            <Rule xsi:type="ItemIs" ItemType="Message" />
            <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="GUID" RegExValue="[0-9A-Fa-f]{8}[-][0-9A-Fa-f]{4}[-][0-9A-Fa-f]{4}[-][0-9A-Fa-f]{4}[-][0-9A-Fa-f]{12}" PropertyName="BodyAsPlaintext" />
          </Rule>
        </ExtensionPoint>
        <ExtensionPoint xsi:type="DetectedEntity">
          <Label resid="ContextLabel2" />
          <SourceLocation resid="DetectedURL2" />
          <Rule xsi:type="RuleCollection" Mode="And">
            <Rule xsi:type="ItemIs" ItemType="Message" />
            <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="AnotherRegEx" RegExValue="\(Test:.*\)" PropertyName="BodyAsPlaintext" />
          </Rule>
        </ExtensionPoint>
      </DesktopFormFactor>
    </Host>
  </Hosts>
....
。。。。
....

这是上下文激活的限制。我建议采取两个步骤来解决这个问题

首先,可以使用Or规则将两个And规则组合成单个检测实体:

<Rule xsi:type="RuleCollection" Mode="Or">
  <Rule xsi:type="RuleCollection" Mode="And">
    <!-- Additional rules -->
  </Rule>
  <Rule xsi:type="RuleCollection" Mode="And">
    <!-- Additional rules -->
  </Rule>
</Rule>
{
  'AnotherRegEx': ['Test: match'],
  'GUID': []
}