Integrate MS365 OneDrive Control into the Application

With the MS365 OneDrive control, you can access Microsoft OneDrive directly from your portal. You will then have access to the standard features of Microsoft OneDrive, such as opening and editing Microsoft 365 files. You can also upload files to Microsoft OneDrive or download files from there via the portal.

The MS365 OneDrive control, in conjunction with the Connector for Microsoft 365 and Teams, replaces the "Connector for Microsoft Office 365." Using the MS365 OneDrive control makes it easier to configure access to Microsoft OneDrive. For example, this eliminates the need to retrieve the Drive ID and Folder ID via Microsoft Graph.

Requirement

To use the MS365 OneDrive control, you must first register a Connector for Microsoft 365 and Teams. For detailed information on this , see the section " Registering the Connector for Microsoft 365 and Teams."

Step-by-Step

To embed an MS365 OneDrive control in an application page, follow these steps:

  1. In the appropriate application, open the page where you want to embed the MS365 OneDrive control.

  2. Drag the MS365 OneDrive control to the desired position on the page.

    The "Properties - MS365 OneDrive - General" dialog box appears.

  3. Enter a title.

  4. Click "Next."

    The "Properties - MS365 OneDrive - Configuration" dialog box appears.

    Redirect URL for Microsoft 365 Authentication

    This field is pre-filled with the redirect URL for Microsoft 365 authentication. This corresponds to the portal's base URL.

    You can find the base URL in the main menu under "Portal" > "Portal Properties."

    For information on setting up redirect URIs in Microsoft Azure, see the section " Configure Redirect URIs from Intrexx."

    MS365 Configuration

    Select the desired configuration (registration) for the Connector for Microsoft 365 and Teams here.

    The configuration specifies, among other things, the permissions with which the Intrexx Portal Manager accesses Microsoft 365. Sufficient permissions must be configured so that the Intrexx Portal Manager can identify the objects (groups, users, folders, websites) on Microsoft 365 and display them for selection in this dialog box.

    For more information, see the following sections:

    Type

    Here you can choose where the files should be saved.

    The dialog box changes dynamically. Depending on the settings you have configured in the " Connector for Microsoft 365 and Teams " and the value you select in the "Type" drop-down menu, different drop-down menus will be displayed.

    Depending on the settings, the following options are available:

    • My Drive

    • Group

    • Website

    • User

    • Drive ID [10.7]

    The dynamically displayed fields "Group," "Website," and "User" show the information available in Microsoft 365. To ensure that this view—or Intrexx's access to Microsoft 365 —works properly, you must select a configuration in the "MS365 Configuration" field that allows Intrexx to log in to Microsoft 365 using a service account. For detailed information on this, see the section " New Registration - Logging In to the Portal Manager."

    My Drive

    If you select this value, the Intrexx Portal will display the drive of the user currently logged in to the Intrexx Portal.

    Please note that the Intrexx portal user must be mapped to a Microsoft 365 user. That drive will then be used. For more information, see the section " Set the login from Intrexx to Microsoft 365

    Group

    Select "Group" if you are working with Microsoft 365 groups or Microsoft Teams groups and want to upload the Microsoft 365 files to their Drive.

    You can then select the appropriate group, its Drive, and the folder to which you want to upload the Microsoft 365 files.

    If you also want to see the documents in the Teams group, you should not select the root folder, but rather the channel name of the destination drive.

    Website

    Select "Website" if you 're working with web pages and want to save the files to a website's drive. You can then select the appropriate website, Drive, and folder to which you want to upload the Microsoft 365 files.

    User

    You can specify a particular Microsoft 365 user whose Drive you want to display. You can also choose to display the contents of a specific folder on Drive.

    Drive ID

    With the "Drive-ID" type, you access a drive by specifying its Drive-ID. You can also access a folder by specifying its folder ID. The drive or folder ID is not stored in the MS365 OneDrive control. Instead, you simply specify in which data field you have stored the drive ID and folder ID in the corresponding data group.

    The "Drive-ID" type is available only if the OneDrive control is inserted on a page below a data group.

    For detailed information about the Drive ID, see the section " MS365 OneDrive - Dynamic Access via Drive ID."

  5. Enter the required information.

    The "Properties - MS365 OneDrive - Display" dialog box appears.

    Maximum number of entries to display

    Here you can specify the number of entries to be displayed in the portal.

    Example

    If you enter the value "4," the first four items will be displayed on OneDrive.
    "Show more results" appears below that.

    When the portal user clicks "Show More Results," the next four items are displayed as well.

    Presentation

    Here, you can set the default view for OneDrive items in the portal.

    Table - If you select "Table," the items in the portal will be displayed in a table format.

    Tiles - If you select "Tiles," the items will be displayed as tiles in the portal.

    Portal users can switch between the two views at any time within the portal.

  6. Click "Finish."

    You have integrated an MS365 OneDrive control into an application page.

More Information