Sunday, April 19, 2015

RULE-BASED ACTIVATION

RULE-BASED ACTIVATION

Mail apps become available to users based on rules. The rules are defined in the manifest, and are checked when the item is opened. If the conditions in the rules are met, the app will be activated and become available for use.
The rule system is extremely rich. You can create multiple rules, and combine the rules with standard AND and OR operators to ensure your app only activates when necessary.

ACTIVATION RULE TYPES

Rule typeNotes
ItemIsA rule that checks if the item type is a message or an appointment.
ItemHasRegularExpressionMatchAllows you to define a regular expression (sometimes known as Perl Regular Expressions) to detect text inside of an email. You could use this to detect product codes or stock keeping units (SKU) to provide a link to information about that product.
ItemHasKnownEntityA rule that looks for known entities such as addresses or dates. (See below for additional information
RuleCollectionA rule composed of multiple rules that are combined using AND or OR

WELL-KNOWN ENTITIES

Outlook is aware of several types of entities. An entity is a pattern of text that usually indicates a component such as street address or URL. When an entity is extracted, you can use the JavaScript API to obtain additonal information about the entity. For example, you can access the start and end time indicated by the text for a meeting suggestion. The table below demonstrates several of the entities available.
Entity typeDescriptionExample
AddressUnited States street address1 Microsoft Way, Redmond, WA 07722
EmailAddressEmail addresscharrison@adventure-works.com
MeetingSuggestionText that often indicates a time, place, or other prompt for connecting with another personLet's talk about this tomorrow morning
ContactName combined with additional informationChristopher Harrison
206-555-1212
Phone NumberUnited States telephone number206-555-1212
TaskSuggestionText that is often used to request the recipient of an email perform a taskCan you run the report for me?
UrlAddress to a web or network locationhttp://www.adventure-works.com

No comments:

Post a Comment