Office.MailboxEnums.LocationType enum

予定の場所の種類を指定します。

注釈

[ API セット: メールボックス 1.8 ]

適用できる Outlook モード: 新規作成または読み取り

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

フィールド

Custom = "custom"

カスタムの場所。 カスタムの場所には SMTP アドレスがありません。

: 予定の場所として追加された 個人用連絡先グループ は、 EnhancedLocation.getAsync メソッドでは返されません。

Room = "room"

SMTP アドレスを持つ会議室または同様のリソース。