Office.MailboxEnums.ResponseType enum

Specifies the type of response to a meeting invitation.

Remarks

Applicable Outlook mode: Compose or Read

Examples

// 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);
}

Fields

None = "none"

There has been no response from the attendee.

Organizer = "organizer"

The attendee is the meeting organizer.

Tentative = "tentative"

The meeting request was tentatively accepted by the attendee.

Accepted = "accepted"

The meeting request was accepted by the attendee.

Declined = "declined"

The meeting request was declined by the attendee.