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."
The following section outlines the individual steps for implementing the example.
-
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.
-
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.
-
Create a view page
Create a view page below the data group.
-
Insert MS365 OneDrive Control
Place an MS365 OneDrive control on the view page.
-
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.
-
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.
-
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:
-
Save and publish the application.
More Information






