Integrate MS365 OneDrive control into application

With MS365 OneDrive control, you can access Microsoft OneDrive directly from your portal. The usual functions of Microsoft OneDrive, such as opening and editing Microsoft 365 files, are then available to you. You can also use the portal to upload files to Microsoft OneDrive or download files from there.

The MS365 OneDrive control element replaces the "Connector for Microsoft Office 365" in conjunction with Connector for Microsoft 365 and Teams. Using the MS365 OneDrive control element makes it easier to configure access to Microsoft OneDrive. For example, it is no longer necessary to determine the drive ID and the folder ID via Microsoft Graph.

Requirements

To be able to use the MS365 OneDrive control, you must first register a Connector for Microsoft 365 and Teams. You can find detailed information on this in section Registering Connector for Microsoft 365 and Teams.

Step-by-step guide

To integrate an MS365 OneDrive control into an application page, proceed as follows:

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

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

    The "Properties - MS365 OneDrive - General" dialog box is displayed.

  3. Enter a title.

  4. Click on "Next".

    The "Properties - MS365 OneDrive - Configuration" dialog box is displayed.

    Redirect URL for Microsoft 365 authentication

    In this field, the redirect URL for Microsoft 365 authentication is preset. This corresponds to the base URL of the portal.

    You can find the basic URL in the main menu under "Portal" > "Portal properties".

    In connection with setting up redirect URIs in Microsoft Azure, see the section Store redirect URIs from Intrexx.

    MS365 configuration

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

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

    Further information is available in the following sections:

    Type

    Here, you can select where the files are to be stored.

    The dialog box changes dynamically. Depending on which settings you have made in Connector for Microsoft 365 and Teams and which value you select in the "Type" selection field, different selection fields are displayed.

    The following selections are available depending on the setting:

    • Own Drive

    • Group

    • Website

    • User

    • Drive ID [10.7]

    In the dynamically displayed fields "Group", "Website" and "User", the existing information in Microsoft 365 is displayed. In order for this display or access from Intrexx to Microsoft 365 to work, you must select a configuration in the "MS365 configuration" field in which Intrexx logs in to Microsoft 365 with a service account. You can find detailed information on this in the section New registration – Login in the Portal Manager.

    Own Drive

    If you select this value, the drive of the user logged into the Intrexx Portal will be displayed in the Intrexx Portal.

    Please note that the Intrexx portal user must be mapped with a Microsoft 365 user. Its drive is then used. See the section Set login from Intrexx to Microsoft 365

    Group

    Select "Group" if you want to work with Microsoft 365 groups or Microsoft Teams groups and upload the Microsoft 365 files to their drive.

    You can then select the relevant 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 the corresponding channel name of the target drive.

    Website

    select "Website" if you are working with websites and want to save the files in a website drive. You can then select the relevant website, drive and folder to which you want to upload the Microsoft 365 files.

    User

    You can define a specific Microsoft 365 user whose drive is to be displayed. You can also specify that the contents of a specific folder should be displayed on the drive.

    Drive ID

    With the "Drive ID" type, you access a drive by specifying the drive ID. In addition, you can access a folder by specifying the folder ID. The drive or folder ID is not stored in the MS365 OneDrive control. Instead, you only specify there in which data field, you have stored the drive ID and folder ID in the associated data group.

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

    Detailed information on Drive ID can be found in section MS365 OneDrive - Dynamic access via drive ID.

  5. Enter the desired information.

    The "Properties - MS365 OneDrive - Display" dialog box is displayed.

    Maximum number of entries to be displayed

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

    Example

    If you enter the value "4", the first four elements are displayed on OneDrive.
    Below this, "Show more results" is displayed.

    If the portal user clicks on "Show more results", the next four elements are also displayed.

    View

    Here you can set which view of the OneDrive elements is preset in the portal.

    Table - If you select the value "Table", the elements in the portal are displayed in tabular form.

    Tiles - If you select the value "Tiles", the elements in the portal are displayed as tiles.

    The portal user can switch between the two views in the portal at any time.

  6. Click on "Finish".

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

More information