Office.MailboxEnums.LocationType enum

Specifies an appointment location's type.

Remarks

[ API set: Mailbox 1.8 ]

Applicable Outlook mode: Compose or Read

Examples

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/get-add-remove-enhancedlocation-appointment.yaml

const locations = [
  {
    id: "Contoso",
    type: Office.MailboxEnums.LocationType.Custom
  },
  {
    id: "room500@test.com",
    type: Office.MailboxEnums.LocationType.Room
  }
];
Office.context.mailbox.item.enhancedLocation.addAsync(locations, (result) => {
  if (result.status === Office.AsyncResultStatus.Succeeded) {
    console.log(`Successfully added locations ${JSON.stringify(locations)}`);
  } else {
    console.error(`Failed to add locations. Error message: ${result.error.message}`);
  }
});

Fields

Custom = "custom"

A custom location. Custom locations don't have an SMTP address.

Note: Personal contact groups added as appointment locations aren't returned by the EnhancedLocation.getAsync method.

Room = "room"

A conference room or similar resource that has an SMTP address.