MS365 OneDrive - Dynamic Access via Drive ID

Overview

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 ID or folder ID is not stored in the MS365 OneDrive control. Instead, you simply specify there which data field you have used to store the drive ID and folder ID in the corresponding data group. When the application is running in the portal, Intrexx can dynamically access a drive within the context of a record. This means you can connect to any number of drives using just one MS365 OneDrive control. And you don't have to create a new page in the application with the MS365 OneDrive control each time you want to access a Drive.

Procedure - Example

Description

They manage the three projects "Frankfurt," "Freiburg," and "Hamburg." They manage the projects on a Drive. For each project, there is a folder on Drive that contains all the documents related to that project. You would like to create an overview page for the projects. This should include a table containing all relevant information about the respective project, such as the project manager, project start and end dates, etc. When you click on a record in the table (), a page should appear showing the OneDrive project directory and links to the documents it contains ().

Implementation

Prerequisite: To access a drive or folder via an Intrexx data field, you must enter the ID of the drive or folder in the data field. To determine the IDs, you'll need "Microsoft Graph."

Microsoft Graph is a web tool from Microsoft that allows you to retrieve data from OneDrive, among other things. You can sign in to Microsoft Graph using your Microsoft 365 credentials (https://developer.microsoft.com/en-us/graph/graph-explorer). There you'll find, among other things, FAQs about OneDrive. For example, you can click "GET all the items in my drive." Next, all the IDs for your OneDrive account, among other things, will be displayed. You can enter these in the "Folder Selection" dialog box in the "Folder ID" and "Drive ID" fields.

The following section outlines the individual steps for implementing the example.

  1. Create or Add to a Data Group

    Create a data group in which you define data fields for the drive ID and folder ID.

    Alternatively, you can add the data fields to an existing data group.

  2. Fill data fields with content

    Fill in the data fields.

    As a general rule, it makes sense to populate the data group with values automatically. This can be done, for example, using an Intrexx process.

  3. Create a view page

    Create a view page below the data group.

  4. Insert MS365 OneDrive Control

    Place an MS365 OneDrive control on the view page.

  5. Configure the MS365 OneDrive Control

    Enable the "Data Field" option and select the data field that stores the drive ID and (optionally) the folder ID.

  6. Insert a view table

    Create a view page above the data group and insert a view table.

    Add the desired data fields to the view table.

  7. Button that links to the view page

    In the view table, insert a button that links to the view page containing the MS365 OneDrive control.

    The column overview looks like this:

  8. Save and publish the application.

More Information