Skip to content

PropertyName="BodyAsHTML" usage requires additional info #370

@butchmarshall

Description

@butchmarshall

Using the XML manifest from the Outlook-Add-in-Contextual-Regex example for testing, when changing the ItemHasRegularExpressionMatch Rules from BodyAsPlaintext to BodyAsHTML outlook throws an error:
image

These are the only change made to the XML manifest.

<Rule xsi:type="RuleCollection" Mode="And">
   <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
   <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="9Digits" RegExValue="\d{9}" PropertyName="BodyAsHTML"/>
 </Rule>
<Rule xsi:type="RuleCollection" Mode="And">
  <Rule xsi:type="ItemIs" ItemType="Message" />
  <Rule xsi:type="ItemHasRegularExpressionMatch" RegExName="OrderNumber" RegExValue="CO-\d{9}" PropertyName="BodyAsHTML"/>
</Rule>

What is the "highlight attribute" it is referencing? It doesn't seem to be mentioned in the docs.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

Area: add-insFeedback on add-ins contentType: doc bugProblem with the documentation (e.g., doc is out of date, unclear, confusing, or broken)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions