Office.MailboxEnums.SaveLocation enum

アドインでデータを保存する場所を指定します。

注釈

適用可能な Outlook モード: Compose、読み取り

重要: この列挙型は、Android 版 Outlook およびバージョン 4.2443.0 以降の iOS 版でのみサポートされます。 モバイル デバイス上の Outlook でサポートされている API の詳細については、「モバイル デバイス上の Outlook でサポートされている Outlook JavaScript API」を参照してください

使用元

// Checks if the add-in can save data to SharePoint.
const isSaveToSharePointAllowed = Office.context.mailbox.getIsSaveToLocationAllowed(Office.MailboxEnums.SaveLocation.SharePoint);
if (isSaveToSharePointAllowed) {
    console.log("Saving to SharePoint is allowed.");
    // Do something.
} else {
    console.log("Saving to SharePoint isn't allowed.");
}

フィールド

AccountDocument

アドイン内のアカウントに関連付けられている場所。

Box

ボックス

Dropbox

[Dropbox]。

GoogleDrive

Google ドライブ。

Local

デバイス上のローカル ストレージ。

OnedriveForBusiness

OneDrive for Business。

重要: OneDrive Personal の場合は、[その他] を使用します。

Other

その他のクラウド ストレージ プロバイダー (OneDrive Personal など)。

PhotoLibrary

デバイスのフォト ライブラリ。

SharePoint

SharePoint。 SharePoint Online とオンプレミスの SharePoint の両方が含まれます (Microsoft Entra ID アカウントでアクセスした場合)。