-
Notifications
You must be signed in to change notification settings - Fork 64
/
office.mailboxenums.responsetype.yml
86 lines (77 loc) · 2.7 KB
/
office.mailboxenums.responsetype.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
### YamlMime:TSEnum
name: Office.MailboxEnums.ResponseType
uid: 'outlook!Office.MailboxEnums.ResponseType:enum'
package: outlook!
fullName: Office.MailboxEnums.ResponseType
summary: Specifies the type of response to a meeting invitation.
remarks: >-
**[Applicable Outlook
mode](https://learn.microsoft.com/office/dev/add-ins/outlook/outlook-add-ins-overview#extension-points)<!-- -->**:
Compose or Read
#### Examples
```TypeScript
// Link to full sample:
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/30-recipients-and-attendees/get-all-attendees.yaml
function organizeByResponse(attendees) {
const accepted = [];
const declined = [];
const noResponse = [];
const tentative = [];
attendees.forEach(attendee => {
switch (attendee.appointmentResponse) {
case Office.MailboxEnums.ResponseType.Accepted:
accepted.push(attendee);
break;
case Office.MailboxEnums.ResponseType.Declined:
declined.push(attendee);
break;
case Office.MailboxEnums.ResponseType.None:
noResponse.push(attendee);
break;
case Office.MailboxEnums.ResponseType.Tentative:
tentative.push(attendee);
break;
case Office.MailboxEnums.ResponseType.Organizer:
console.log(`Organizer: ${attendee.displayName}, ${attendee.emailAddress}`);
break;
}
});
// List attendees by their response.
console.log("Accepted: ");
printAttendees(accepted);
console.log("Declined: ");
printAttendees(declined);
console.log("Tentative: ");
printAttendees(tentative);
console.log("No response: ");
printAttendees(noResponse);
}
```
isPreview: false
isDeprecated: false
fields:
- name: None
uid: 'outlook!Office.MailboxEnums.ResponseType.None:member'
package: outlook!
summary: There has been no response from the attendee.
value: '"none"'
- name: Organizer
uid: 'outlook!Office.MailboxEnums.ResponseType.Organizer:member'
package: outlook!
summary: The attendee is the meeting organizer.
value: '"organizer"'
- name: Tentative
uid: 'outlook!Office.MailboxEnums.ResponseType.Tentative:member'
package: outlook!
summary: The meeting request was tentatively accepted by the attendee.
value: '"tentative"'
- name: Accepted
uid: 'outlook!Office.MailboxEnums.ResponseType.Accepted:member'
package: outlook!
summary: The meeting request was accepted by the attendee.
value: '"accepted"'
- name: Declined
uid: 'outlook!Office.MailboxEnums.ResponseType.Declined:member'
package: outlook!
summary: The meeting request was declined by the attendee.
value: '"declined"'