-
Notifications
You must be signed in to change notification settings - Fork 66
/
office.tasksuggestion.yml
99 lines (79 loc) · 3.86 KB
/
office.tasksuggestion.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
### YamlMime:TSType
name: Office.TaskSuggestion
uid: 'outlook!Office.TaskSuggestion:interface'
package: outlook!
fullName: Office.TaskSuggestion
summary: >-
Represents a suggested task identified in an item. Read mode only.
The list of tasks suggested in an email message is returned in the `taskSuggestions` property of the
[Entities](xref:outlook!Office.Entities:interface) object that's returned when the `getEntities` or
`getEntitiesByType` method is called on the active item.
**Warning**: Entity-based contextual Outlook add-ins are now retired. However, regular expression rules are still
supported. We recommend updating your contextual add-in to use regular expression rules as an alternative solution.
For guidance on how to implement these rules, see [Contextual Outlook
add-ins](https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins)<!-- -->.
remarks: >-
**[Minimum permission
level](https://learn.microsoft.com/office/dev/add-ins/outlook/understanding-outlook-add-in-permissions)<!-- -->**:
**read item**
**[Applicable Outlook
mode](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points)<!-- -->**:
Read
#### Examples
```TypeScript
const item = Office.context.mailbox.item;
// Get an array of strings that represent task suggestions in the current item's body.
const taskSuggestions = item.getEntitiesByType(Office.MailboxEnums.EntityType.TaskSuggestion);
console.log("There are " + taskSuggestions.length + " task suggestions.")
taskSuggestions.forEach(function (taskSuggestion) {
console.log("Assignees: " + JSON.stringify(taskSuggestion.assignees));
console.log("Task: " + JSON.stringify(taskSuggestion.taskString));
});
```
isPreview: false
isDeprecated: true
customDeprecatedMessage: >-
Use [regular expression rules](https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins)
instead.
type: interface
properties:
- name: assignees
uid: 'outlook!Office.TaskSuggestion#assignees:member'
package: outlook!
fullName: assignees
summary: >-
Gets the users that should be assigned a suggested task.
**Warning**: Entity-based contextual Outlook add-ins are now retired. However, regular expression rules are
still supported. We recommend updating your contextual add-in to use regular expression rules as an alternative
solution. For guidance on how to implement these rules, see [Contextual Outlook
add-ins](https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins)<!-- -->.
remarks: ''
isPreview: false
isDeprecated: true
customDeprecatedMessage: >-
Use [regular expression rules](https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins)
instead.
syntax:
content: 'assignees: EmailUser[];'
return:
type: '<xref uid="outlook!Office.EmailUser:interface" />[]'
- name: taskString
uid: 'outlook!Office.TaskSuggestion#taskString:member'
package: outlook!
fullName: taskString
summary: >-
Gets the text of an item that was identified as a task suggestion.
**Warning**: Entity-based contextual Outlook add-ins are now retired. However, regular expression rules are
still supported. We recommend updating your contextual add-in to use regular expression rules as an alternative
solution. For guidance on how to implement these rules, see [Contextual Outlook
add-ins](https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins)<!-- -->.
remarks: ''
isPreview: false
isDeprecated: true
customDeprecatedMessage: >-
Use [regular expression rules](https://learn.microsoft.com/office/dev/add-ins/outlook/contextual-outlook-add-ins)
instead.
syntax:
content: 'taskString: string;'
return:
type: string