Reputation: 169
I am trying to apply a regular expression to highlight order numbers on outlook. I did it for the body message, but it is not working for the Subject of the email. I tested the outlook online and desktop versions and both only work for the body.
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<ExtensionPoint xsi:type="DetectedEntity">
<Label resid="contextLabel" />
<RequestedHeight>140</RequestedHeight>
<SourceLocation resid="detectedEntityURL" />
<Rule xsi:type="RuleCollection" Mode="And">
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Appointment" Highlight="All" />
<Rule xsi:type="ItemIs" ItemType="Message" Highlight="All" />
</Rule>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemHasRegularExpressionMatch" PropertyName="Subject" RegExName="OrderNumber2" RegExValue="0*[1-9]\d{7,}" Highlight="All" />
<Rule xsi:type="ItemHasRegularExpressionMatch" PropertyName="BodyAsPlaintext" RegExName="OrderNumber" RegExValue="0*[1-9]\d{7,}" Highlight="All" />
</Rule>
</Rule>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
This is how my code currently looks like.
Upvotes: 0
Views: 247
Reputation:
We only support the use of "Highlight" in the case of the "ProperyName" being set to BodyAsPlainText. You can find the documentation on this at this link.
Upvotes: 1