Office.MailboxEnums.SaveLocation enum
Specifies the location in which an add-in wants to save data.
Remarks
Applicable Outlook mode: Compose, Read
Important: This enum is only supported in Outlook on Android and on iOS starting in Version 4.2443.0. To learn more about APIs supported in Outlook on mobile devices, see Outlook JavaScript APIs supported in Outlook on mobile devices.
Examples
// 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.");
}
Fields
AccountDocument | A location associated with an account within an add-in. |
Box | Box. |
Dropbox | Dropbox. |
GoogleDrive | Google Drive. |
Local | Local storage on a device. |
OnedriveForBusiness | OneDrive for Business. Important: For OneDrive Personal, use OTHER. |
Other | Other cloud storage providers, including OneDrive Personal. |
PhotoLibrary | The device's photo library. |
SharePoint | SharePoint. Includes both SharePoint Online and SharePoint on-premises (if accessed with a Microsoft Entra ID account). |
Office Add-ins